Message ID | 20221125040112.18160-5-samuel@sholland.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;zxc52fgh@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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: <xms:ED6AYyxtEafVGMthGK-TwRo75LSndQ36GGZMbFMF1VtO2ql2I2Xtsw> <xme:ED6AY-QfB9-8Wt19LIMIGhXu3DqWYXcbmS70WLqWh6ln0yb_-CRwSBS9mnpesEBhh R8LNXQUT7vCzg6V7w> X-ME-Received: <xmr:ED6AY0XEP3JBaWWZpBlwsowFpW-UcGJSyKDvxTgIo0y4IAOUxElV6RRM_YfFcPf2xf8V2ZJPlIaclrmrwOnzpHZg_JqilPe3mUfLR5ziWHIW-vuBti1Z_QGkTP6g1s3zmUTaEQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieeggdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: <xmx:ED6AY4j7-_lm939vsqCM8Ibho9znQdnKUs_A1NgX9_iDMeXHv2OB5Q> <xmx:ED6AY0AN6uEBeGDmMrmMCKFZ-8gMkE2OQBGewYIGPIwMsWHGC6vmYA> <xmx:ED6AY5LAdbApB_ZW2PDKTr8bLFlAELAgC0Ha-99clVN6Eyi5r_2MdQ> <xmx:ED6AYw4ILoP810vYbfmePT44Z1Y_HKYFCqyRE3M2h1o9l41kJx2r_w> Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Nov 2022 23:01:19 -0500 (EST) From: Samuel Holland <samuel@sholland.org> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org> Cc: Samuel Holland <samuel@sholland.org>, Andrew Lunn <andrew@lunn.ch>, Heiko Stuebner <heiko@sntech.de>, Maxime Ripard <mripard@kernel.org>, 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
regulator: Add support for Allwinner D1 system LDOs
|
|
Commit Message
Samuel Holland
Nov. 25, 2022, 4:01 a.m. UTC
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 <samuel@sholland.org>
---
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(+)
Comments
Dne petek, 25. november 2022 ob 05:01:12 CET je Samuel Holland napisal(a): > 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 <samuel@sholland.org> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Best regards, Jernej
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",