Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1391566rwb; Fri, 23 Sep 2022 11:59:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OMNK7TazU9h7XGZ4MDPZmm1GPefYuIEyOKljiyszwfB10sF7VEEHSFVbJVJNXIBOLEu7T X-Received: by 2002:a05:6402:2709:b0:451:d665:e787 with SMTP id y9-20020a056402270900b00451d665e787mr9803263edd.317.1663959582353; Fri, 23 Sep 2022 11:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663959582; cv=none; d=google.com; s=arc-20160816; b=nkPy1zOReFYerdrHJWehdoHsvDqFouVEcCwGqRP7VT2/fENGXAdRZXcGXrcYcweFgM z7wGDQuGlq0l6dUnRroLo9CvChywlejK1fiXXazzVy1L6CdtRiUUAZ+ri1s1tyrrRS2M XNrsu8qktygylAJ3iv/sVH5hruK70NnNOGmRYy2P0+OnwhvR9tu/VpGFEg9yaFVr108S cIQeTlmpbJmdqZys7Sd+hT+Hst3+4VnRPS1GS8fEeNrxVsBsIEVMQ2yWM8zgv02OpUZQ bEEz2AXzrIDSPBhm3nzves3bo16PO4JRsXWLuBVwN65c8ZAo/JmuiENC3Zdbo8w5a6v1 Gxng== 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; bh=xbbXxwwieURpD/8sy9XNuMEfxX/vZbTDANFulq+OvUM=; b=qhrvSMC9vwezJg4VQjUL9l1GjAB/MnsMY9hYE6tL3UnlUZtpVDQNctlspEZwjIjEAF Q8pEAs4vz1QPbGcMyD+ONjdprA6G2AA+O0lsqonM7cYMO3zuODpmlzu2tTYzGiPrws0r ufQ5zRj5RViNLSwmZ59Ae1LbqbnFBc0id1m3iRdYLTipY9FvYVcy/Ro4EQ9i3xYLducw b7eT0EknD3M8Wgkzzo1IILeYGr5FJawyxA0b4UfsQrZpyac+Zql1jnyUoTECPv77EYX0 D3sHVSDQG2tls81VCcSuQeiqPej1wRt+lM3D+mOEJ6hM7iUX1ITxrIVrOSmVtcbfUU0I fW1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs38-20020a1709072d2600b0077fd6028710si8644751ejc.670.2022.09.23.11.59.15; Fri, 23 Sep 2022 11:59:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232904AbiIWSl2 (ORCPT + 99 others); Fri, 23 Sep 2022 14:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbiIWSlZ (ORCPT ); Fri, 23 Sep 2022 14:41:25 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC214A99FA; Fri, 23 Sep 2022 11:41:22 -0700 (PDT) Received: from p508fdd76.dip0.t-ipconnect.de ([80.143.221.118] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1obnbw-0000Sm-AL; Fri, 23 Sep 2022 20:41:16 +0200 From: Heiko Stuebner To: Quentin Schulz Cc: linus.walleij@linaro.org, brgl@bgdev.pl, jay.xu@rock-chips.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, foss+kernel@0leil.net, Quentin Schulz , stable@vger.kernel.org Subject: Re: [PATCH 2/2] gpio: rockchip: request GPIO mux to pinctrl when setting direction Date: Fri, 23 Sep 2022 20:41:15 +0200 Message-ID: <3292995.CbtlEUcBR6@phil> In-Reply-To: <20220923145141.3463754-3-foss+kernel@0leil.net> References: <20220923145141.3463754-1-foss+kernel@0leil.net> <20220923145141.3463754-3-foss+kernel@0leil.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 Am Freitag, 23. September 2022, 16:51:41 CEST schrieb Quentin Schulz: > From: Quentin Schulz > > Before the split of gpio and pinctrl sections in their own driver, > rockchip_set_mux was called in pinmux_ops.gpio_set_direction for > configuring a pin in its GPIO function. > > This is essential for cases where pinctrl is "bypassed" by gpio > consumers otherwise the GPIO function is not configured for the pin and > it does not work. Such was the case for the sysfs/libgpiod userspace > GPIO handling. > > Let's call pinctrl_gpio_direction_input/output when setting the > direction of a GPIO so that the pinctrl core requests from the rockchip > pinctrl driver to put the pin in its GPIO function. > > Fixes: 9ce9a02039de ("pinctrl/rockchip: drop the gpio related codes") > Fixes: 936ee2675eee ("gpio/rockchip: add driver for rockchip gpio") > Cc: stable@vger.kernel.org > Signed-off-by: Quentin Schulz cool, thanks a lot for reimplementing this Reviewed-by: Heiko Stuebner