From: Biao Huang Date: Tue, 16 Feb 2016 19:16:33 +0000 (+0800) Subject: pinctrl: mediatek: add input-enable setting in gpio_request_enable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31763d3b369c44159919ff2fbfafbb90613e1de2;p=linux-beck.git pinctrl: mediatek: add input-enable setting in gpio_request_enable 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 Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 6024483dd336..578897a1c45f 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -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; }