dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output
PATCH 1/1 dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output
Current code does not set output level in bcm6345_gpio_direction_output, fix it.
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/bcm6345_gpio.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpio/bcm6345_gpio.c +2 -0
@@ -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 ); }
Signature · 1 line
2.9.3
Quoted 4 lines · Axel Lin
Current code does not set output level in
bcm6345_gpio_direction_output, fix it.Signed-off-by Axel Lin <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170612/0c34d6d9/attachment.sig>
PATCH 1/1 dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output
In reply to Axel LinQuoted 7 lines · Axel Lin
Current code does not set output level in
bcm6345_gpio_direction_output, fix it.Signed-off-by Axel Lin <[email protected]>--- drivers/gpio/bcm6345_gpio.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 dm: bcm6345_gpio: Set proper output level in bcm6345_gpio_direction_output
In reply to Axel LinThanks for finding this Axel!
Reviewed-by Álvaro Fernández Rojas <[email protected]>
Quoted 22 lines · Axel Lin
Current code does not set output level in
bcm6345_gpio_direction_output, fix it.Signed-off-by Axel Lin <[email protected]>--- drivers/gpio/bcm6345_gpio.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpio/bcm6345_gpio.c +2
-0@@ -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 ); }