From patchwork Fri Nov 25 04:01:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 25804 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3755716wrr; Thu, 24 Nov 2022 20:05:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UuyIAeBH5Ik1MwTdFXJfoQQOXldw6T3wHYnkvBf+yJIWqr7XU2X0xJtKSKJLs2Ulvj4+S X-Received: by 2002:a17:906:99d3:b0:78d:c7fd:f755 with SMTP id s19-20020a17090699d300b0078dc7fdf755mr14449603ejn.702.1669349143367; Thu, 24 Nov 2022 20:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669349143; cv=none; d=google.com; s=arc-20160816; b=fYZ45Lxp0SIxWGpy6r41TTw0N254cvYoNhnFX41E/ry+UkvJ17Gcdvr+VYaxsa8HOD ayZsg1n4g2Di4uXJYQUJwIwnCyfvJJbAFLFHlIMWd3c6b8bbJ9qIFuObX0Hcl1urmlcy iwC881CquqsnpiIj8ZtJ2uysOUdAYY92AAMLGH8ZkyaK504EiS7+kD+5e++6EyI/qXaY JMZ0YUsTc01+t1L7vL2Bu6EHWCt7Qcf4waFnkCVC6bWUZbxdDQR1Iwz58h/tb2x2LHTr AI6/XW/7xyFuwNtKY3KJCyDmGSwMZeztTXckxgR3UHHXlJH7LHfCsQpYn++rJVb5a7TV pmJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=yxoCW18sGnAleTXERaxCCwFBmN8B1EyztOvLbqS0bd8=; b=DxACNouA6E2b5wYBPDA9wh6jbYrpOzOMSvuEmHIb02ezpboPXE+o0NK3dV9KKIsnHP 11n2xL7/yiW6npX4IHYb3nFAsz9GKKMyETiyEKIgZJqMdbb8YpD5DxzfEIYCI1Uue5QX u5PdpovrEsNxsjB0PTG/qVLKAoD904XHerh/a1jVZEbx7SBd2exbwKAPvo1XGdl4z5LI K3rayekZ/bKIGZrfqRXiMxpMsX5dvUPcyE0Be1nhhIqCssOVMy5Bnc3yTIi1fRRex0XY SpYx3u/T3I42WNCB21JklW4ecaNFWHex1kRE1Uv1u5FBNay/Vl3VwJsUGF8f27n11y1M b6Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=BjnxwE6T; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZvZ2j6XN; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs30-20020a1709072d1e00b0078db3f08a6bsi1634515ejc.720.2022.11.24.20.05.20; Thu, 24 Nov 2022 20:05:43 -0800 (PST) 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=BjnxwE6T; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZvZ2j6XN; 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 S229803AbiKYECV (ORCPT + 99 others); Thu, 24 Nov 2022 23:02:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbiKYEBV (ORCPT ); Thu, 24 Nov 2022 23:01:21 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA502C650; Thu, 24 Nov 2022 20:01:20 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4067F5C0152; Thu, 24 Nov 2022 23:01:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 24 Nov 2022 23:01:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding: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=1669348880; x=1669435280; bh=yx oCW18sGnAleTXERaxCCwFBmN8B1EyztOvLbqS0bd8=; b=BjnxwE6TKebpPzT2U8 ROz+fz0anYyp9MpM1hl0SiD+aM1rKcvoBV+SzkrngMqiJuq0FwxjgqzFvKAGJo2K oqwEufzs2OKZ9MeeBZsJbDDdFGiTjfFVBqhzGxdouEWkrSjrwEMHkLMbgkkAQppu Pu/WQpsa7ytc2K0mL7vhPMK5WQTFQIAdnRcnSRZqXBi/Uf3gplaAiklmtfwYjVDj gcOdEdFghPTER+/T2TiOK4Rvi4IIviMzEM/R+kWGHbJKBIA7C77S9+LeglFvIGKR eWO1k+JZp5mfOPhtaH8YL0mFyYaHSNNGmRc9memSpuCmdwYIvd/MwrDYt/Y2gmH0 A6jw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding: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=1669348880; x=1669435280; bh=yxoCW18sGnAle TXERaxCCwFBmN8B1EyztOvLbqS0bd8=; b=ZvZ2j6XNr8ko82Io47/lvF38cYZYk o/LbBIP5K+GSONo1f0/hdPoFDsm1ttQsyPBx1iQ04xwFgranF0GabO38jcCH2LCp Iys4jSVhIPlUB3iucSiKKZZfeBMkWiI/CiOO71D9Cvlo7RnOSDfPHKwLGjAKJIBp N8gbTw//Eg5V+UDFUbmn/XcHzJDTHbLRcmSKk/7BDqbvZiT8vQwep4dMlctuMUXM f0IgaYohVWKBdmPh6sDq3VuhP+siFScaxk3rKSNdd5yUn17/oUr5mVS2yGREkixB CggwHf67+jwWUZ7ZgIq9/uzKWN7EpalGcECihw8kqtmC/7Q1Wa7dg2+mQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieeggdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Nov 2022 23:01:19 -0500 (EST) From: Samuel Holland To: Liam Girdwood , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring Cc: Samuel Holland , Andrew Lunn , Heiko Stuebner , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v4 4/4] soc: sunxi: sram: Only iterate over SRAM children Date: Thu, 24 Nov 2022 22:01:12 -0600 Message-Id: <20221125040112.18160-5-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221125040112.18160-1-samuel@sholland.org> References: <20221125040112.18160-1-samuel@sholland.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750439447177941420?= X-GMAIL-MSGID: =?utf-8?q?1750439447177941420?= Now that a regulators child is accepted by the controller binding, the debugfs show routine must be explicitly limited to mmio-sram children. Signed-off-by: Samuel Holland Acked-by: Jernej Skrabec --- Changes in v4: - Check the compatible string instead of the node name 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..f09918c59042 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_device_is_compatible(sram_node, "mmio-sram")) + continue; + sram_addr_p = of_get_address(sram_node, 0, NULL, NULL); seq_printf(s, "sram@%08x\n",