Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3475732rwb; Tue, 16 Aug 2022 03:53:16 -0700 (PDT) X-Google-Smtp-Source: AA6agR7C4YB1UBg1bcDlkG14MIGBoc97zxXLweoLeshf+oAufAJCUa49WiV4r+9f6+j1S6RWHefO X-Received: by 2002:a17:90a:c58e:b0:1f3:1ab5:22ae with SMTP id l14-20020a17090ac58e00b001f31ab522aemr32731055pjt.45.1660647196559; Tue, 16 Aug 2022 03:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660647196; cv=none; d=google.com; s=arc-20160816; b=NcTraf9jIKeyXeY6ZCNSInJj3eifYhbc5loyg+macS736wl+ATvWt7my7FkLLURrVZ bK9vDuB+q053+qyoW/ObA/pcFIYJsLf09e6YqTqeNSN0AZFESR5ExKrD4n+gcZDuGXxu S4l/uHjtWsh08BwnCPqqSNuAVGeIzP2tnIMMagf+V/ELkC+aEzLoMQ1U3qrzbaCV78Io ZVKhIZBzCl3oLRXslmfmTTMwHKYNeAJ997whlTPYEx2vDb1NVaieoesfKQ7ZBsXje+Dn iUFuytrPdocg4+93YA7BjiksaC9yuTkI+gZQg+Xod5Skn4v8ySwJ3xSJK9nwb39Bx7xf 8oBw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CNCRgWb3pKggt17+aZXpum1u8S3P+8WTUXBySzZQI58=; b=VvLjgMW3oXABexDrSmVuz547fJSHiRrcK+/S+CC6PrAauXD6liYWYHUzKOTfw85GCT jxObuZU1i6cT+S6BUw03qdaIf1tJ3gdkxn/GCh/JCiNuBj8jUgDGNIIEFsdQyZI6Hl02 4KTAfkA+8UGSR4cka8ZLzlgmAUKCRtTPZYhlz6YLwSegvq81h+qjum8oMnKOkAX132wF XlRrUmqepzadkwuMnu5qgbxQ4D8FU3d66bbETdjpZ6YaEkDSHfg31HE9mVhDlfMcwv8d BbJlbRsGrNwYSsap10sRYOYCbImKr9OAWKqO08sIXjaCw4kZSTHLMO63V2i+kuPm6PJv qyFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u8tTO6zf; 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 ob4-20020a17090b390400b001ec92216b35si21239930pjb.160.2022.08.16.03.53.05; Tue, 16 Aug 2022 03:53:16 -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=u8tTO6zf; 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 S234925AbiHPKnh (ORCPT + 99 others); Tue, 16 Aug 2022 06:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234998AbiHPKnA (ORCPT ); Tue, 16 Aug 2022 06:43:00 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3E969FAA9 for ; Tue, 16 Aug 2022 03:01:24 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id v2so14234955lfi.6 for ; Tue, 16 Aug 2022 03:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=CNCRgWb3pKggt17+aZXpum1u8S3P+8WTUXBySzZQI58=; b=u8tTO6zfQ0qFZw3+/8gsWraUU5j0AIjWN3x1bqyf9laYvSyQd8Itvzf1kOeWEqwBKB xUag+Gf5BJ3rGN146NfaO1a9XnNUCdxlyHbtGnBr+vxqGjAjm/pWC3qFkGjiyKGUovyB OZ1Fw0ahjmz7wdBBFqqV0lUmrmaC2O9bouLWCp8+ca/qTnmQ0CYhx9o45SDbRffY9ePL o62yihQQ1ZJRmvT/aAM9Zr9ybrLKdrllefTqpXF2azRLRdbCBkUe2z2/MAImVsR2N4YY khI6i4qbCzktf88KqfHralU+C+TaWi2roO9MAqAAiNXMtkl6DCIBvHJn0xNoCy1D3RB6 B01g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=CNCRgWb3pKggt17+aZXpum1u8S3P+8WTUXBySzZQI58=; b=YmUEQdmdI7uA5xJ9ZnQt/UGq4DhUMqsTTEDAU560AkzjXYoFwW84EClgKQtr2dmuGG ItsBJvSmY9NAnHnLR5v/b19UfRkkxseKHT5U/9GS+zSe9wiRb9H6ECXRta7iPkuLTVlK 6Zm+uK7EFN20k7YcxBe3mqC39APH9kjvMSB+5VsuUv211r/n0DXMdX/LTK9dDAA/Oz0F QdRcAXZjrclDAwrPFoqFohtCv/y1Ii4QL3GVuhDXGsAuo34lOVgS8KXyPpdWaArULAne SHSS4/POONJraCFhvZ1HllLmlkWg50JQ45BPV78CBI6fpV7uJ8kM9aPZJXP2/4xiHHI6 omCA== X-Gm-Message-State: ACgBeo2S2ag6pCEwbpJrZypnKdrtQY21h9E1/qJ2Sh2YKqkgcCAS4nLW aPFP5spLFJM98N0D2Oua3KoiHQ== X-Received: by 2002:ac2:4db6:0:b0:48a:f9b6:bac1 with SMTP id h22-20020ac24db6000000b0048af9b6bac1mr6550327lfe.669.1660644083188; Tue, 16 Aug 2022 03:01:23 -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 u9-20020a05651c130900b0025fdcdad0e4sm1024424lja.35.2022.08.16.03.01.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 03:01:22 -0700 (PDT) Message-ID: Date: Tue, 16 Aug 2022 13:01:21 +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 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> From: Krzysztof Kozlowski In-Reply-To: <20220815043436.20170-5-samuel@sholland.org> 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 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? Best regards, Krzysztof