summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sunxi
diff options
context:
space:
mode:
authorHsin-Yi Wang <hsinyi@chromium.org>2021-07-01 16:09:55 +0800
committerLinus Walleij <linus.walleij@linaro.org>2021-07-23 17:41:56 +0200
commit798a315fc359aa6dbe48e09d802aa59b7e158ffc (patch)
treebe56543345f1c2f2507f733d40c8c78db099a9d4 /drivers/pinctrl/sunxi
parent32ec3960175e58a914fc242b66dfe33e9059568f (diff)
downloadlinux-stable-798a315fc359aa6dbe48e09d802aa59b7e158ffc.tar.gz
linux-stable-798a315fc359aa6dbe48e09d802aa59b7e158ffc.tar.bz2
linux-stable-798a315fc359aa6dbe48e09d802aa59b7e158ffc.zip
pinctrl: mediatek: Fix fallback behavior for bias_set_combo
Some pin doesn't support PUPD register, if it fails and fallbacks with bias_set_combo case, it will call mtk_pinconf_bias_set_pupd_r1_r0() to modify the PUPD pin again. Since the general bias set are either PU/PD or PULLSEL/PULLEN, try bias_set or bias_set_rev1 for the other fallback case. If the pin doesn't support neither PU/PD nor PULLSEL/PULLEN, it will return -ENOTSUPP. Fixes: 81bd1579b43e ("pinctrl: mediatek: Fix fallback call path") Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Zhiyong Tao <zhiyong.tao@mediatek.com> Link: https://lore.kernel.org/r/20210701080955.2660294-1-hsinyi@chromium.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sunxi')
0 files changed, 0 insertions, 0 deletions