Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Axel Lin and committed by
Linus Walleij
2e86230f 6ce4eac1

+1
+1
drivers/gpio/gpio-tb10x.c
··· 132 132 int mask = BIT(offset); 133 133 int val = TB10X_GPIO_DIR_OUT << offset; 134 134 135 + tb10x_gpio_set(chip, offset, value); 135 136 tb10x_set_bits(tb10x_gpio, OFFSET_TO_REG_DDR, mask, val); 136 137 137 138 return 0;