From: =?UTF-8?Q?=c3=81lvaro_Fern=c3=a1ndez_Rojas?= Date: Tue, 13 Jun 2017 11:59:52 +0200 Subject: [U-Boot] [PATCH] dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output In-Reply-To: <20170608092012.29948-1-axel.lin@ingics.com> References: <20170608092012.29948-1-axel.lin@ingics.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Thanks for finding this Axel! Reviewed-by: Álvaro Fernández Rojas El 08/06/2017 a las 11:20, Axel Lin escribió: > Current code does not set output level in bcm6345_gpio_direction_output, > fix it. > > Signed-off-by: Axel Lin > --- > drivers/gpio/bcm6345_gpio.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c > index 009e2fc..b9100cd 100644 > --- a/drivers/gpio/bcm6345_gpio.c > +++ b/drivers/gpio/bcm6345_gpio.c > @@ -64,6 +64,8 @@ static int bcm6345_gpio_direction_output(struct udevice *dev, unsigned offset, > { > struct bcm6345_gpio_priv *priv = dev_get_priv(dev); > > + bcm6345_gpio_set_value(dev, offset, value); > + > return bcm6345_gpio_set_direction(priv->reg_dirout, offset, 0); > } > >