[linux-yocto] [PATCH 08/34] pinctrl: update direction_output function of cherryview driver
wei.tee.ng at intel.com
wei.tee.ng at intel.com
Mon Apr 27 20:20:33 PDT 2015
From: "qipeng.zha" <qipeng.zha at intel.com>
>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<jason.cj.chen at intel.com>
Signed-off-by: qipeng.zha <qipeng.zha at intel.com>
Acked-by: Mika Westerberg <mika.westerberg at linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
(cherry picked from commit 549e783f6a1504fcd24576302bc3818538b677f0)
Signed-off-by: Ng Wei Tee <wei.tee.ng at intel.com>
---
drivers/pinctrl/intel/pinctrl-cherryview.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/drivers/pinctrl/intel/pinctrl-cherryview.c
index 3034fd0..82f691e 100644
--- 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);
}
--
1.7.9.5
More information about the linux-yocto
mailing list