Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1376056rwb; Fri, 23 Sep 2022 11:44:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rF7nMiWJeLVzWQ4yGlbuk9aD8XjNLIWKJtNkCp6hFLnGhjI59zjwB9b+f/aYosASVOgnZ X-Received: by 2002:a05:6a00:2449:b0:528:3a29:e79d with SMTP id d9-20020a056a00244900b005283a29e79dmr10609141pfj.39.1663958657632; Fri, 23 Sep 2022 11:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663958657; cv=none; d=google.com; s=arc-20160816; b=G1WPWSYaQ1cz1yi/mk1X205ROFlTWYX5hkaXaRdN8C3wvjSYuf+RINmv7Z5wDFzZKf h5TXO6zSUK2mhOis2rquoRH3HsjEZqT8s/igUnKWrwZp9cMFu02/NNncYa28S1WsWuij RtNdcAXqvt6BSnnxm9Tszd4MMl/zkgAFrYiryVIHO38gdCLcgpRK9hOUszKXEJoNZAAM ci1xvVdeTTZHpnEvkg3jKfjgjCVUBOuGFvehg4narVX7mB+HUIs+mu3R+YUjDebUXzxD y7dEubuTrIk2zTFv+0dJl96DTU6VEY+fIdE8SlCekPBPCrt3MBlNTJZhXnf1UOT3zolo Y5hA== 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=KCy/1STFMi1fF4ilpFQVO2c2PrX0mS4QxpGsLqxtHjg=; b=jFAMIOmSZrhLuWQ2QzqFxmDqbW1oaocKQuFJbCbj3k6UIB7T/XYVLjpErkEXZIdQ/Y 5LumrG6svSmrT2buQQCRUejBrYHQaoehGoEm6/vSh3CgaA0gGzQgPUZxAD+2rzDgaWnb /UZXwpLCSYMId0eYqfHvb16iIlX4D05gGSDJ9xXyc0sjr3Gxl2dmMHIy5+IK341iYo7d 0zF/77rdpFINanyY1Lw6ariYmpoHQwzGl1crZkkgHkPWEPXvsgAoCX/f7IxGed7YQCyg YKVJhMHRGLiksD7dzaRWHKBwFPGtGxn9iKWJ7XMIw/YBl9GkX2R3AhMo7+Lz9oNYbZ9h ZJPw== 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 u15-20020a17090341cf00b00172696f35e1si4313248ple.482.2022.09.23.11.44.06; Fri, 23 Sep 2022 11:44:17 -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 S232696AbiIWSPE (ORCPT + 99 others); Fri, 23 Sep 2022 14:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232606AbiIWSPC (ORCPT ); Fri, 23 Sep 2022 14:15:02 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042C32B24C; Fri, 23 Sep 2022 11:14:57 -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 1obnCL-0000GC-Bj; Fri, 23 Sep 2022 20:14:49 +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 1/2] pinctrl: rockchip: add pinmux_ops.gpio_set_direction callback Date: Fri, 23 Sep 2022 20:14:48 +0200 Message-ID: <2890748.BddDVKsqQX@phil> In-Reply-To: <20220923145141.3463754-2-foss+kernel@0leil.net> References: <20220923145141.3463754-1-foss+kernel@0leil.net> <20220923145141.3463754-2-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:40 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 re-implement the pinmux_ops.gpio_set_direction callback so that > the gpio subsystem can request from the pinctrl driver to put the pin in > its GPIO function. > > Fixes: 9ce9a02039de ("pinctrl/rockchip: drop the gpio related codes") > Cc: stable@vger.kernel.org > Signed-off-by: Quentin Schulz Reviewed-by: Heiko Stuebner