Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3476458rwb; Tue, 16 Aug 2022 03:54:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6eONfPU525menlpeuYpHuXxmiGDzyU+25Sessepaz3QttiyXYChZJXp4/+WRB3oKZnjrb9 X-Received: by 2002:a17:903:32cc:b0:16e:fe5f:74cb with SMTP id i12-20020a17090332cc00b0016efe5f74cbmr20937155plr.16.1660647254816; Tue, 16 Aug 2022 03:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660647254; cv=none; d=google.com; s=arc-20160816; b=Stfbr6CyyTIbRd/ovTT3K+MKyC4wnuVmRwETRef5aUqU4MxprsPSirCb91TWcPz2wY ZOLQii2gbrNBTl4Dlyi5O68MhWLD3i//jSeh5nr7z4qwgwsDLtKdHJlgOc19cLnMC3hn 7SiDRe+cO7rheQ15AzXEqWIB4GYluOLiDE4aL1BPuxJdI3u3FoRW7kzze3MPFQn6NBKW Kf8+PTKun/URtmeifMKQUeH69i0U7RnS6+pCeS9xlxlW4ZkyWCkR7MyrRPfR8ZW3MV1N /h5CZQ8YwnCcbat75rktedEFV+9HaOStp3BOaT/HblxqdeTqQK4RpmeSghaCgdwm7LR6 y0Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=OpAr4FILibAj60CMTr+2Ye6zNBQ/3UZQJ3hG9VyyeXQ=; b=gchb61y/dRTdDuTNRLDVunD7/vEB2X4BivUZSD+YPM8e4u8nRH5xQjwyDI27AZMkdL Ap9+Tpx6mzgV2Oush6S6P5iD1jqFq3KAExzcceYKdMkyuVQ98a0RxHat5xfmrt5gzfwN RNNaxIbjK7aHInZ2+r67un8cTqhT2KwAk4uqQLvXEr4YfyIRe+rwtBi+k2zPXwFE8Y9i PWJFwhfo0Zm7r8YASpyICC+Sagy+S03BZF1GHNEW5Aj58ObmbW+BE0KctnF6Gje0hLL2 HUbOszqaMlM5tRs2ModtW0A/B2mSMs09VQBTKYrXoFi8euGo31vMhfTJFfqeZMns0Is7 YVnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yBRx89F7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 79-20020a630052000000b00428feddd57csi5979774pga.633.2022.08.16.03.54.03; Tue, 16 Aug 2022 03:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yBRx89F7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234811AbiHPKnu (ORCPT + 99 others); Tue, 16 Aug 2022 06:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234994AbiHPKna (ORCPT ); Tue, 16 Aug 2022 06:43:30 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F8B86C18 for ; Tue, 16 Aug 2022 03:03:46 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id v10so10003864ljh.9 for ; Tue, 16 Aug 2022 03:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=OpAr4FILibAj60CMTr+2Ye6zNBQ/3UZQJ3hG9VyyeXQ=; b=yBRx89F71+/Nr+yqbTzxq7RaQS/DGhP+V/xTGPujyv864Z7WgklQ8/9btVLlypEccw 7SFgAJ/0mXdj4EztCodYtKc/EWITIhKvD7fclaY87vclFFubKUv6Y7DjXkULIgxxuu80 6ac1KYH/DNcm4i9TaNy9mkHyqDtTSi0yOdIppjx9nxhqI+mD8aKUTJ+V8F6Nquc/uQ6H A9Ww/IIBC9gRb7BVvnX/5kHJVi1+FMQ9HakmPCeH9PmbyXmKypE8OntnM0F8g8vKoT+j PvH+k6ODqRVmY/T6e3yxaXaE+SUGmuVA+0iriyuWG7kB7jfj2cFrX+UD3g/b0T31oNtP sMtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=OpAr4FILibAj60CMTr+2Ye6zNBQ/3UZQJ3hG9VyyeXQ=; b=NODUYBcoHf4bGYJ81guVDiqD44TETFHukBVyAJnKAxo8droUuF/c4hIKbVRMgMXEax UyAstAFXxV3f+96dEApDT12EHTtI2Zv7lXWyEimfsUCdECUvyELpv3+TvrFRUtdWVlPo 3WQ1Fq6Y0LtDJ2JvIvCOtJDqbp90aXq6COeb5PSR1ZgNIQyMLxvKuSnrjNzPpQu6Mm7K Nfjyr8aq8LFs2pu85swSGpc6by+qxCdZIZrj0bNLjpH0k5z95qGltttwNCw6S9EqOtWk xNiMbMUsCQQ0aJ8TkOVD0/uyGnljveN9XBIfg+XPE8d1sLlTBn4jnwm4mScRY25ahPMr KCiw== X-Gm-Message-State: ACgBeo2VzKrIekY9ZbMv6M/Vz3DADp5JSl6NIlIEUe1/R4VqF+4CNgwt ruNj/+BRUvmGMvELebFftp1NSA== X-Received: by 2002:a2e:a168:0:b0:25e:4dbc:2ac0 with SMTP id u8-20020a2ea168000000b0025e4dbc2ac0mr5760174ljl.187.1660644224935; Tue, 16 Aug 2022 03:03:44 -0700 (PDT) Received: from ?IPV6:2001:14bb:ae:539c:1782:dd68:b0c1:c1a4? (d15l54g8c71znbtrbzt-4.rev.dnainternet.fi. [2001:14bb:ae:539c:1782:dd68:b0c1:c1a4]) by smtp.gmail.com with ESMTPSA id j21-20020ac253b5000000b0048b124b070asm1335989lfh.173.2022.08.16.03.03.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 03:03:44 -0700 (PDT) Message-ID: <82fedf98-1d94-514a-ba03-f88b4e1d888b@linaro.org> Date: Tue, 16 Aug 2022 13:03:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v3 4/4] soc: sunxi: sram: Only iterate over SRAM children Content-Language: en-US From: Krzysztof Kozlowski To: Samuel Holland , Liam Girdwood , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring Cc: Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev References: <20220815043436.20170-1-samuel@sholland.org> <20220815043436.20170-5-samuel@sholland.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/08/2022 13:01, Krzysztof Kozlowski wrote: > On 15/08/2022 07:34, Samuel Holland wrote: >> Now that a "regulators" child is accepted by the controller binding, the >> debugfs show routine must be explicitly limited to "sram" children. >> >> Signed-off-by: Samuel Holland >> --- >> >> (no changes since v2) >> >> Changes in v2: >> - New patch for v2 >> >> drivers/soc/sunxi/sunxi_sram.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c >> index 92f9186c1c42..6acaaeb65652 100644 >> --- a/drivers/soc/sunxi/sunxi_sram.c >> +++ b/drivers/soc/sunxi/sunxi_sram.c >> @@ -120,6 +120,9 @@ static int sunxi_sram_show(struct seq_file *s, void *data) >> seq_puts(s, "--------------------\n\n"); >> >> for_each_child_of_node(sram_dev->of_node, sram_node) { >> + if (!of_node_name_eq(sram_node, "sram")) > > You should not rely on node names. They can change in DTS. Why do you > need to test for the name? > Ah, it is not a device node but a child property, right? In such case, it's of course fine. The device node names could change and should not be considered ABI (at least I hope should not...). Best regards, Krzysztof