Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4565146rwb; Wed, 17 Aug 2022 02:07:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6k8ichB7jUkwwHCIqly9eDaVpGCYZSuePehu+sd9kMDnEuLnnM6IQv7qy2MJ0PtOPu5laP X-Received: by 2002:a05:6402:42d3:b0:435:2c49:313d with SMTP id i19-20020a05640242d300b004352c49313dmr21920954edc.86.1660727267534; Wed, 17 Aug 2022 02:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660727267; cv=none; d=google.com; s=arc-20160816; b=E/pzF8LpGBNddUxngdlwtujLqBOjBLinoSa6j7RNbkyAz9v1dA/zsQUGGgJJnqbVoh X47IxNVT4mld02qHNb2zKucjpYv2DTzmny3RdvHCmfVTonMgzHdqfqwHN86cblUO2ad6 uxmURJYaQmh/jP6LADl+Znrd2LBij1mi4P8LWzmQ+Stp6L0XymsDs2WKiSUkd1vpRsia fk/o0LS3mUP5zQSblgGqT79yWsXzf6hqDSq96Y/KfkgzlEQjx2MYxikaQ4/+tR4COJp9 nYwn/HqllVUjXvTPZB7lCoGFsDzb92NCA1I9PDCzx4wt8wQlV4vjq7s+ep5of1CxCpqu A11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:feedback-id:dkim-signature:dkim-signature; bh=qjCTliriPTIj2jcyPtsg+UorPFtVEycVX2NzPCDuQ1Y=; b=jSqPthNtH0jaQ1HV8H3lCQEuPwZHTqOZdd7uQULVPpNwQaY8vPVHVzFUaYC5rJebYZ lVkxkFqg3kCc6C5OmJo2ru0VhoWMcgVH0Q2E6jiG3GJirxq/kkSqfKb6darNcitGdDXV 6A/e3Wer1MlqaRbB/vlLw4FIeTsAueegFtIKLXMcQE+1wNhG1eCSAfOAJAe60vPoreib Jbl+SCGX+dm8AeUZEEP1qxrL9Ma7tnQGIOeOE5NVUfTTZAoj8rVxLxRGM5BTVB2dS24T J6tahAib4G2elonxX1Nbdat6szdoAP46a0hGybJ6PU/phlSnC7dgWcmjxatbz79VX6bL mMDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=n4TqT6ht; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=c+FQ5CCT; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd5-20020a1709076e0500b007330a081f1fsi11981089ejc.679.2022.08.17.02.07.22; Wed, 17 Aug 2022 02:07:47 -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=@sholland.org header.s=fm2 header.b=n4TqT6ht; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=c+FQ5CCT; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232988AbiHQIui (ORCPT + 99 others); Wed, 17 Aug 2022 04:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238495AbiHQIu2 (ORCPT ); Wed, 17 Aug 2022 04:50:28 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A02877558; Wed, 17 Aug 2022 01:50:28 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 55DFB5C0158; Wed, 17 Aug 2022 04:50:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 17 Aug 2022 04:50:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1660726227; x= 1660812627; bh=qjCTliriPTIj2jcyPtsg+UorPFtVEycVX2NzPCDuQ1Y=; b=n 4TqT6htuV5DDkJQllXEPBAe+9G/Ua75/SNBIBpNemkwXrUrKhc6zEkA55QvdDpuk YBPNLZKoTnnsQkIvBgNZtJIe+YXcNSJPoyeQYtZhtrCNpFmSjtWTJWe+8+UEkOzu xfmSzryfPUx9N09it9ksnHgyKSHEHPwIuHk9jMw0hR7oI7AyxC7GvLxpiAnLN5KB ayvDiD+X8bpH7e6vhOAg/+mBNplc1xeEvd/sLGMsonII7Syr7CYMgVM5ZIEh0BZA ap9IFTMFllCNxqALfY1rA9zrIJdFClVJKYrDYd/Ow07gKU+XvwWEKwX5+5hcfiI9 odCcUOCcCLQZE7Xz9zX7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1660726227; x= 1660812627; bh=qjCTliriPTIj2jcyPtsg+UorPFtVEycVX2NzPCDuQ1Y=; b=c +FQ5CCTxLKG2ztDpB+x7aZs8pucpadcRkvekSVxmYoBrhuynQSV/3ROzdCag8lPU 8cOikptRAozmbmAhywXZ5WJxSMUDSnIjPAD/aGz7IaGfGfrwk5yhLSl6jYvuO5Pn r8cqL/1IBzy/bvHFO1DVx/yoMPBKDqHpzQODBGvV/Hub7QkiHpXYreP8qA5pvdyR f6V4uydr24uHTYhjFeJJypGdbp3Om0MaSqZDWN7me69ey7s1DL0ncO4iwqGCJ6zy PL7xKuUnVDdLt2vzHxNsvrGd3DykCPHKixcWXTiTyVaR2w+wN4dAQpceIvxenTLl 2ll0eihSwxktA11mf8eWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehiedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpefftdevkedvgeekueeutefgteffieelvedukeeuhfehledvhfei tdehudfhudehhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 17 Aug 2022 04:50:26 -0400 (EDT) Subject: Re: [PATCH v3 4/4] soc: sunxi: sram: Only iterate over SRAM children To: Krzysztof Kozlowski , 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> <82fedf98-1d94-514a-ba03-f88b4e1d888b@linaro.org> From: Samuel Holland Message-ID: Date: Wed, 17 Aug 2022 03:50:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <82fedf98-1d94-514a-ba03-f88b4e1d888b@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 8/16/22 5:03 AM, Krzysztof Kozlowski wrote: > 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. It is a child node. > The device node names could change and should not be considered ABI (at > least I hope should not...). The node names are limited by patternProperties in the controller binding. I can check the child nodes for compatibility with "mmio-sram" if that is better. Regards, Samuel