projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce4eac
)
gpio: tb10x: Set output value before setting direction to output
author
Axel Lin
<axel.lin@ingics.com>
Thu, 31 Oct 2013 03:23:46 +0000
(11:23 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:02:29 +0000
(09:02 +0100)
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>
drivers/gpio/gpio-tb10x.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-tb10x.c
b/drivers/gpio/gpio-tb10x.c
index 0502b9a041a50a199b40f4d3bf956bcd81dc7fdf..da071ddbad9985670843087ee3652844958b3827 100644
(file)
--- a/
drivers/gpio/gpio-tb10x.c
+++ b/
drivers/gpio/gpio-tb10x.c
@@
-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;