Commit 2e86230f authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij

gpio: tb10x: Set output value before setting direction to output

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarChristian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6ce4eac1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment