[U-Boot] [PATCH] gpio: fix issue in set gpio output direction

Michal Simek monstr at monstr.eu
Tue Oct 8 07:53:41 UTC 2019


čt 12. 9. 2019 v 12:32 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> From: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
>
> This patch fixes zynq_gpio_direction() to call driver specific
> zynq_gpio_set_value function rather than top level gpio_set_value.
>
> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/gpio/zynq_gpio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c
> index 55a5cba0688e..a760c5bdda68 100644
> --- a/drivers/gpio/zynq_gpio.c
> +++ b/drivers/gpio/zynq_gpio.c
> @@ -292,7 +292,7 @@ static int zynq_gpio_direction_output(struct udevice *dev, unsigned gpio,
>         writel(reg, platdata->base + ZYNQ_GPIO_OUTEN_OFFSET(bank_num));
>
>         /* set the state of the pin */
> -       gpio_set_value(gpio, value);
> +       zynq_gpio_set_value(dev, gpio, value);
>         return 0;
>  }
>
> --
> 2.17.1
>

Applied but with gpio: zynq: subject.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list