Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4854417pxb; Mon, 28 Mar 2022 04:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyoQRysJPb7xWAtay2sRmyE9aEjI88qhYXhiBU3AD1MjX16etKEHhs5OB77y2zZQZwcwzc X-Received: by 2002:a17:907:86a8:b0:6db:6c1c:d9c4 with SMTP id qa40-20020a17090786a800b006db6c1cd9c4mr26369824ejc.640.1648467495992; Mon, 28 Mar 2022 04:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648467495; cv=none; d=google.com; s=arc-20160816; b=aCXmTUJil/wH6laMC33cn8/tMvDyL8BEmIjAiDsDXUeXXSXV9jDHGmQHw+Yxfz31Jg u8R7Cw/zecwmWcKzIRkDwTaNbL4GxpSvfqrObxVpxGfJf4UbxEpAyoqaEnbt9Affa4xv ZtaDmcU+7gzCL0XZfLNJ+rQKPlYdkDfnxqbYxtyx5unrfP+cqNTIymc77G+C3qDkiqSq Ra3Vn5PS/7m9zfGhjNNe6s4+7fCzfhdyV2KrxLsrVsgTqm/BISDeIMOVXAxvFbpLZnRe I2rW0+5FC3J9NLvmZSEkY4yM2cuMTQrWP4d+Xtoe8tUbkgdwSiF/L3lqLh9whpotuOlk sM9g== 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 :dkim-signature; bh=FJPO+cvB8mQMll3NzzvYxlnd9zKt1uj4D1+8hbf+ebs=; b=ZS5pJ4NOWDbm6mnfFj0VwKMUOYkZ6FQL9VJowbJmYqI0XJfKHhwFJbKDl3h28YXJiE OAd9DJzRnwjQUnsThSSbWcRjHeDRhq1gfTYWtri8pE+Kohg1rOWAwHorMt1KqcljnziZ c2bjHr9cVgHDOIxrRLioSiRtaU+IZounqCNK+YXR/5MGsSS0I2sqSllsOK8y+1g8sgDG i+F9gbTo/Nazms6TFyk6J3lgI8zyGl1drr9BOJCXWYZ/Mu6HsQ4a89YlsT7p10sLp5AU MaNEbRpP5LXnGtduMV94zpgNOJdYyQGhImkP8HnmteyYgmk2oaRYVa9Ug/Bqmv/xcesL VtOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=QCUmOohg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a170906008a00b006df76385eeesi14600461ejc.910.2022.03.28.04.37.38; Mon, 28 Mar 2022 04:38:15 -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; dkim=pass header.i=@postmarketos.org header.s=donut header.b=QCUmOohg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237207AbiC1BCd (ORCPT + 99 others); Sun, 27 Mar 2022 21:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235028AbiC1BCb (ORCPT ); Sun, 27 Mar 2022 21:02:31 -0400 Received: from proxmox1.postmarketos.org (proxmox1.postmarketos.org [213.239.216.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC3084ECDD; Sun, 27 Mar 2022 18:00:50 -0700 (PDT) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net [81.96.50.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by proxmox1.postmarketos.org (Postfix) with ESMTPSA id CCA3E140195; Mon, 28 Mar 2022 00:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1648428630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FJPO+cvB8mQMll3NzzvYxlnd9zKt1uj4D1+8hbf+ebs=; b=QCUmOohgp7Hn9lmS+r5wAkX438yPTC/mINkGBozlm1i//Cp1NiRAtUM3e23zyrgp2VJvQN DE+ArD6XUE8FhBU+jPxyGQt2L0qsKA0/nPOTZtLCbc3Fi3aokGFvGdP/S1FV8J1smBuvit jFZPfxAXuWy8dGFa+TQ9V7nD04Dswew= From: Caleb Connolly To: Caleb Connolly , Rob Herring , Heiko Stuebner , Linus Walleij , Bartosz Golaszewski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, martijn@brixit.nl, Arnaud Ferraris Subject: [PATCH 3/4] gpio/rockchip: handle deferring input-enable pinconfs Date: Mon, 28 Mar 2022 01:50:04 +0100 Message-Id: <20220328005005.72492-4-kc@postmarketos.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220328005005.72492-1-kc@postmarketos.org> References: <20220328005005.72492-1-kc@postmarketos.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Add support for deferred PIN_CONFIG_INPUT_ENABLE handling. Signed-off-by: Caleb Connolly --- drivers/gpio/gpio-rockchip.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c index bcf5214e3586..e342a6dc4c6c 100644 --- a/drivers/gpio/gpio-rockchip.c +++ b/drivers/gpio/gpio-rockchip.c @@ -760,6 +760,11 @@ static int rockchip_gpio_probe(struct platform_device *pdev) dev_warn(dev, "setting output pin %u to %u failed\n", cfg->pin, cfg->arg); break; + case PIN_CONFIG_INPUT_ENABLE: + ret = rockchip_gpio_direction_input(&bank->gpio_chip, cfg->pin); + if (ret) + dev_warn(dev, "setting input pin %u failed\n", cfg->pin); + break; default: dev_warn(dev, "unknown deferred config param %d\n", cfg->param); break; -- 2.35.1