diff mbox

pinctrl: update direction_output function of cherryview driver

Message ID C6287702A945AC47BE5DB5DFD4B5C6DD018452E6@SHSMSX104.ccr.corp.intel.com
State New
Headers show

Commit Message

qipeng.zha March 6, 2015, 7:31 a.m. UTC
Hi Linus

Are you checking to merge this patch, thanks:)



Best wishes
Qipeng


-----Original Message-----
From: Zha, Qipeng 
Sent: Tuesday, March 03, 2015 6:13 PM
To: linux-gpio@vger.kernel.org
Cc: linus.walleij@linaro.org; Westerberg, Mika; Zha, Qipeng; Chen, Jason CJ
Subject: [PATCH] pinctrl: update direction_output function of cherryview driver

From: "qipeng.zha" <qipeng.zha@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@intel.com>
Signed-off-by: qipeng.zha <qipeng.zha@intel.com>
---
 drivers/pinctrl/intel/pinctrl-cherryview.c | 1 +
 1 file changed, 1 insertion(+)

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/drivers/pinctrl/intel/pinctrl-cherryview.c
index e9f8b39..ee6a6de 100644
--- a/drivers/pinctrl/intel/pinctrl-cherryview.c
+++ b/drivers/pinctrl/intel/pinctrl-cherryview.c
@@ -1206,6 +1206,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.8.3.2