pinctrl: mediatek: add input-enable setting in gpio_request_enable
authorBiao Huang <biao.huang@mediatek.com>
Tue, 16 Feb 2016 19:16:33 +0000 (03:16 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Feb 2016 23:29:23 +0000 (00:29 +0100)
Since input-disable cuts off input signal of gpio, add input-enable
setting in .gpio_request_enable implementation to ensure gpio function well

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c

index 6024483dd336826661e730fd57ad292d6e1a2336..578897a1c45fc8e469b493c530b470d45acc47cc 100644 (file)
@@ -764,6 +764,7 @@ static int mtk_pmx_gpio_request_enable(struct pinctrl_dev *pctldev,
        }
 
        mtk_pmx_set_mode(pctldev, offset, muxval);
+       mtk_pconf_set_ies_smt(pctl, offset, 1, PIN_CONFIG_INPUT_ENABLE);
 
        return 0;
 }