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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27206C04A68 for ; Thu, 28 Jul 2022 06:28:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 31D978418B; Thu, 28 Jul 2022 08:28:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1658989717; bh=MDDsACedn9IpdRhm9f/OrKsuhkS/Gxm8MwD8RlS7fbo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Ndf9coQTYyloOv96CXIPG1Hpsy6xakB3a1sTBU3UU15+9I3T4vZK1zKbC2l9OTado gLmUXW5F6UrXWEN/n0Nc3jAWYygefQpXshKLJYB8mjs9uI9tPlqrQwPIETWnnJSCl4 daa5kdJTuKBM3G12t7v2UsWog9wwLji5hvhik3za+T3EuGkThg19frKova95cNT9BV YCYBIlQJLklbCO3x7mzh/RXm+WsDgowAvZi0TaRDO4ku3GbXFRLmGk/r3tDHUe9q2f S/r46GZ5wcZICgGgIuzxCA/T3raSC+zYvCMU/KIx8NBT/UZne+oKWYPGhckvmaJ4hs NwZY3jeROm+xQ== Received: by phobos.denx.de (Postfix, from userid 109) id CD7A681F69; Thu, 28 Jul 2022 08:28:35 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:101:465::204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CB3A28418B for ; Thu, 28 Jul 2022 08:28:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4LtghH6h8Wz9svX; Thu, 28 Jul 2022 08:28:31 +0200 (CEST) Message-ID: Date: Thu, 28 Jul 2022 08:28:30 +0200 MIME-Version: 1.0 Subject: Re: [PATCH 5/8] gpio: mvebu_gpio: Add .request and .rfree methods for Armada 38x Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: Marek Behun , Simon Glass , u-boot@lists.denx.de References: <20220725115615.420-1-pali@kernel.org> <20220725115615.420-6-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220725115615.420-6-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4LtghH6h8Wz9svX X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 25.07.22 13:56, Pali Rohár wrote: > To use particular pin GPIO, it needs to be first switched to GPIO by > pinctrl. Use pinctrl_gpio_request() and pinctrl_gpio_free() for this > purpose. > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan > --- > drivers/gpio/mvebu_gpio.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c > index 4c1c68ee19ed..888ccfe4d13e 100644 > --- a/drivers/gpio/mvebu_gpio.c > +++ b/drivers/gpio/mvebu_gpio.c > @@ -5,6 +5,7 @@ > > #include > #include > +#include > #include > #include > #include > @@ -99,6 +100,10 @@ static int mvebu_gpio_probe(struct udevice *dev) > } > > static const struct dm_gpio_ops mvebu_gpio_ops = { > +#if CONFIG_IS_ENABLED(PINCTRL_ARMADA_38X) > + .request = pinctrl_gpio_request, > + .rfree = pinctrl_gpio_free, > +#endif > .direction_input = mvebu_gpio_direction_input, > .direction_output = mvebu_gpio_direction_output, > .get_function = mvebu_gpio_get_function, Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de