projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcc18de
)
pinctrl: update direction_output function of cherryview driver
author
qipeng.zha
<
[email protected]
>
Tue, 3 Mar 2015 10:13:22 +0000
(18:13 +0800)
committer
Linus Walleij
<
[email protected]
>
Tue, 10 Mar 2015 08:02:23 +0000
(09:02 +0100)
From the comments of gpiod_direction_output(), need to set @value
as initial output, so update the lowlevel routine to make it work.
Signed-off-by: jason.cj.chen<
[email protected]
>
Signed-off-by: qipeng.zha <
[email protected]
>
Acked-by: Mika Westerberg <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/pinctrl/intel/pinctrl-cherryview.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/intel/pinctrl-cherryview.c
b/drivers/pinctrl/intel/pinctrl-cherryview.c
index 3034fd03bced3ff7587f8bfd248c7bb212a0c16c..82f691eeeec4d82cd5e75b7a96be719befbcd57f 100644
(file)
--- a/
drivers/pinctrl/intel/pinctrl-cherryview.c
+++ b/
drivers/pinctrl/intel/pinctrl-cherryview.c
@@
-1226,6
+1226,7
@@
static int chv_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
int value)
{
+ chv_gpio_set(chip, offset, value);
return pinctrl_gpio_direction_output(chip->base + offset);
}