From patchwork Sun Mar 3 14:01:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13579778 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7620BC54E49 for ; Sun, 3 Mar 2024 14:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8t3gbY9qyGgSH+You/rxCzTfPnnriZyLLLhQT4Pwp2I=; b=k7ChqC2o1X9HC2 FM4Fol0hgacjBJNJzTL3PQaFRDn/dYsF2yviDqU9eC/t1cSIMR25x/nDLGXR4iy1pDg6S6WD5g+l/ 7SRCPFdcWKB//rXDwBIc9Yf8WswnrrTzOM/iPBJTz2ys/oo/LFdj8s86JAJgsnUC2oJAj7TJ1JHat WNFGm2VfIY8kN0BvzNW4jL537K6UBF83R9+PrEaCiA7IFac8A+jNpKkEoo/X6fvC+JhXFf40Uxdog wY9hwzf/GmfPXs0ub1q4zBJ7g2JjfOXKQObak0iywRnYS3+eZ/zTMzXwTx9SgDfBXRNJDREXQ7c5v 9qEH6JWTYFComZTDHyiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgmQ1-000000061qv-30j4; Sun, 03 Mar 2024 14:02:21 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgmPw-000000061kx-1tP7; Sun, 03 Mar 2024 14:02:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1709474524; x=1710079324; i=wahrenst@gmx.net; bh=1zUZ6OjeYmcPgNGlJImXH20GJ/TneTZWtMn2tID45qQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=WxIy9+Er3QX+1ga6O2vl1AbjwDdXfMjyzqSrxePhx2OKh1kEjgZOecpExPkWtmXY 2PVWYyjjxRx/22jr0h4S3V43NgTtQFoQ+msVxTylNKn+kcO8Hoa/FCfg7d+Gv3I9b a3SbxiLlvScfiI6/WR7j03nYqh17Cq9QSsHCO6tAzd0LRuso+8yK0CR6kkflc/8SD 2WoVeL82Cz9/YGqvvc460ae1ZPvugvRQuro2yixNlwyHju7eQv28mZZhF+FPT6U/E 4NsPRrS9nMg2fZ68QwW31l2K4c8sG9oasxEW7/of3CXDb4/HHwxVGmoi4WnPxhHM/ QnyuXALi5h/TF5HIsQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MnJlc-1qxaF53tOG-00jIjt; Sun, 03 Mar 2024 15:02:04 +0100 From: Stefan Wahren To: Linus Walleij , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V3 0/2] pinctrl: bcm2835: Implement pin_conf_get Date: Sun, 3 Mar 2024 15:01:35 +0100 Message-Id: <20240303140137.157522-1-wahrenst@gmx.net> X-Mailer: git-send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5ewXyFJWbPT0RpwymXBBVmR/KERilXRLkp7+f1j53ETcQQ850X gW8adjiG3ZDBGk/LcFLt0YxVvaRhbWC27u3ucSJXay4yo= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_060216_821118_10B32233 X-CRM114-Status: UNSURE ( 9.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org For years, the Raspberry Pi users relied on userspace programs to read the pin configuration. In the meantime, it has become apparent that this approach has reached its limits for various reasons. This patch series now attempts to improve the debugging possibilities on the kernel side in order to reduce the dependency on these userspace programs. Changes in V3: - convert changes to single return point of success as suggested by Andy Shevchenko - justify ENOTSUPP checkpatch false positive Changes in V2: - adjust the BCM2711/7211 pull resistor value according to the Broadcom datasheet Stefan Wahren (2): pinctrl: bcm2835: Implement bcm2835_pinconf_get pinctrl: bcm2835: Implement bcm2711_pinconf_get drivers/pinctrl/bcm/pinctrl-bcm2835.c | 78 +++++++++++++++++++++++++-- 1 file changed, 75 insertions(+), 3 deletions(-) --- 2.34.1