浏览代码

pinctrl: update direction_output function of cherryview driver

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>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
qipeng.zha 10 年之前
父节点
当前提交
549e783f6a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/pinctrl/intel/pinctrl-cherryview.c

+ 1 - 0
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,
 static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
 				     int value)
 				     int value)
 {
 {
+	chv_gpio_set(chip, offset, value);
 	return pinctrl_gpio_direction_output(chip->base + offset);
 	return pinctrl_gpio_direction_output(chip->base + offset);
 }
 }