Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1326360

Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue

From Hongzhou Yang <hongzhou.yang@mediatek.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue
Date 2016-02-04 04:20 +0100
Message-ID <qYiCB-2XI-1@gated-at.bofh.it> (permalink)
References <qY1V8-8wg-13@gated-at.bofh.it> <qY1Va-8wg-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 2016-02-03 at 09:24 +0800, Biao Huang wrote:
> Since input-enable/disable and input-schmitt-enable/disable are
> workable when gpio direction is input, so add direction setting
> when do input-enable/disable and input-schmitt-enable/disable
> properties.
> 
> Signed-off-by: Biao Huang <biao.huang@mediatek.com>
> ---
>  drivers/pinctrl/mediatek/pinctrl-mtk-common.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> index 8cac73d..6eb01c9 100644
> --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
> @@ -352,6 +352,7 @@ static int mtk_pconf_parse_conf(struct pinctrl_dev *pctldev,
>  		ret = mtk_pconf_set_pull_select(pctl, pin, true, false, arg);
>  		break;
>  	case PIN_CONFIG_INPUT_ENABLE:
> +		mtk_pmx_gpio_set_direction(pctldev, NULL, pin, true);
>  		ret = mtk_pconf_set_ies_smt(pctl, pin, arg, param);

Hi Linus,

From pinctrl-bindings.txt, 'input-enable' property defined as following:
input-enable        - enable input on pin (no effect on output)

Since input enable and input direction are two different settings on our
SOC, could you tell me the exact meaning of this property? Input enable
only? Or set input direction at the same time?

Thanks,
Hongzhou

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] pinctrl: mediatek: Add direction control and gpio_request_enable Support Biao Huang <biao.huang@mediatek.com> - 2016-02-03 10:30 +0100
  [PATCH 2/2] pinctrl: mediatek: Add gpio_request_enable support Biao Huang <biao.huang@mediatek.com> - 2016-02-03 10:30 +0100
    Re: [PATCH 2/2] pinctrl: mediatek: Add gpio_request_enable support Linus Walleij <linus.walleij@linaro.org> - 2016-02-05 15:00 +0100
  [PATCH 1/2] pinctrl: mediatek: fix direction control issue Biao Huang <biao.huang@mediatek.com> - 2016-02-03 10:30 +0100
    Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue Hongzhou Yang <hongzhou.yang@mediatek.com> - 2016-02-04 04:20 +0100
      Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue Linus Walleij <linus.walleij@linaro.org> - 2016-02-05 15:00 +0100
    Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue Linus Walleij <linus.walleij@linaro.org> - 2016-02-05 15:00 +0100

csiph-web