gpio: tb10x: Set output value before setting direction to output
PATCH 1/1 gpio: tb10x: Set output value before setting direction to output
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-tb10x.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-tb10x.c +1 -0
@@ -132,6 +132,7 @@ static int tb10x_gpio_direction_out(struct gpio_chip *chip,int mask =BIT (offset);int val =TB10X_GPIO_DIR_OUT << offset; +tb10x_gpio_set (chip, offset, value);tb10x_set_bits (tb10x_gpio,OFFSET_TO_REG_DDR , mask, val);return 0 ;
Signature · 1 line
1.8.1.2
Quoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Quoted 21 lines
--- drivers/gpio/gpio-tb10x.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpio-tb10x.c +1
-0@@ -132,6 +132,7 @@ static int tb10x_gpio_direction_out(struct gpio_chip *chip,int mask =BIT (offset);int val =TB10X_GPIO_DIR_OUT << offset; +tb10x_gpio_set (chip, offset, value);tb10x_set_bits (tb10x_gpio,OFFSET_TO_REG_DDR , mask, val);return 0 ;Signature · 1 line
1.8.1.2
Quoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Patch applied for fixes with Christian's ACK.
Yours,
Linus Walleij