Re: [PATCH] ARM: omap1: Fix new user of gpiochip_request_own_desc()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Linus,

On Saturday, December 15, 2018 12:54:07 PM CET Linus Walleij wrote:
> This fixes up a new user of gpiochip_request_own_desc() in
> the AMS Delta board that appeared after the patch that was
> applied recently.
> 
> Cc: Janusz Krzysztofik <jmkrzyszt@xxxxxxxxx>
> Cc: Tony Lindgren <tony@xxxxxxxxxxx>
> Fixes: 21abf103818a ("gpio: Pass a flag to gpiochip_request_own_desc()")
> Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> ---
>  arch/arm/mach-omap1/board-ams-delta.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

There is one more AMS Delta related file where gpiod_request_own_desc() is 
called and the same fix is needed: arch/arm/mach-omap1/ams-delta-fiq.c.  With 
that fixed, you can add my

	Reviewed-by: Janusz Krzysztofik <jkrzyszt@xxxxxxxxx>

> diff --git a/arch/arm/mach-omap1/board-ams-delta.c b/arch/arm/mach-omap1/
board-ams-delta.c
> index 6719e139eb62..b53ff6399d31 100644
> --- a/arch/arm/mach-omap1/board-ams-delta.c
> +++ b/arch/arm/mach-omap1/board-ams-delta.c
> @@ -603,7 +603,7 @@ static void __init modem_assign_irq(struct gpio_chip 
*chip)
>  	struct gpio_desc *gpiod;
>  
>  	gpiod = gpiochip_request_own_desc(chip, AMS_DELTA_GPIO_PIN_MODEM_IRQ,
> -					  "modem_irq");
> +					  "modem_irq", 0);

Both here and in ams-delta-fiq.c as well, gpiod_direction_input() is called 
soon after. That could be dropped if GPIOD_FLAGS_BIT_DIR_SET was used instead 
of 0.  I can take care of that and prepare a follow up patch if you prefer 
this one being kept as minimal as possible.

Thanks,
Janusz

>  	if (IS_ERR(gpiod)) {
>  		pr_err("%s: modem IRQ GPIO request failed (%ld)\n", __func__,
>  		       PTR_ERR(gpiod));
> 







[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux