linux/drivers/pinctrl/mediatek
Hsin-Yi Wang 798a315fc3 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: 81bd1579b4 ("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>
2021-07-23 17:41:56 +02:00
..
Kconfig pinctrl: mtk: Fix mt8365 Kconfig dependency 2021-06-07 08:56:20 +02:00
Makefile pinctrl: mediatek: add support for mt8365 SoC 2021-05-27 16:50:15 +02:00
mtk-eint.c pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt 2021-02-15 05:52:01 +01:00
mtk-eint.h pinctrl: mediatek: mark dummy helpers as 'static inline' 2018-09-28 09:27:04 +02:00
pinctrl-moore.c pinctrl: mediatek: use spin lock in mtk_rmw 2021-04-22 01:53:29 +02:00
pinctrl-moore.h pinctrl: mtk: Fix up GPIO includes 2018-09-18 16:38:27 -07:00
pinctrl-mt2701.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt2712.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt6397.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt6765.c pinctrl: mediatek: make MediaTek MT6765 pinctrl ready for buiding loadable module 2020-04-16 09:59:11 +02:00
pinctrl-mt6779.c pinctrl: mediatek: add mt6779 eint support 2020-08-04 01:29:10 +02:00
pinctrl-mt6797.c pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC 2018-11-15 11:05:54 +01:00
pinctrl-mt7622.c pinctrl: mt7622: drop pwm ch7 as mt7622 only has 6 channels 2020-11-10 14:58:14 +01:00
pinctrl-mt7623.c pinctrl: mediatek: extend struct mtk_pin_desc which per-pin driver depends on 2018-09-18 14:53:22 -07:00
pinctrl-mt7629.c pinctrl: mediatek: add pinctrl support for MT7629 SoC 2018-11-19 15:40:26 +01:00
pinctrl-mt8127.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt8135.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt8167.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt8173.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mt8183.c pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage 2020-02-14 11:36:49 +01:00
pinctrl-mt8192.c pinctrl: mediatek: Add pinctrl driver for mt8192 2020-08-27 10:50:57 +02:00
pinctrl-mt8195.c pinctrl: add drive for I2C related pins on MT8195 2021-04-22 01:53:02 +02:00
pinctrl-mt8365.c pinctrl: mediatek: add support for mt8365 SoC 2021-05-27 16:50:15 +02:00
pinctrl-mt8516.c pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mtk-common-v2.c pinctrl: mediatek: Fix fallback behavior for bias_set_combo 2021-07-23 17:41:56 +02:00
pinctrl-mtk-common-v2.h pinctrl: mediatek: use spin lock in mtk_rmw 2021-04-22 01:53:29 +02:00
pinctrl-mtk-common.c pinctrl: mediatek: fix mode encoding 2021-06-09 15:30:45 +02:00
pinctrl-mtk-common.h pinctrl: mediatek: don't hardcode mode encoding in common code 2021-05-27 16:50:15 +02:00
pinctrl-mtk-mt2701.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
pinctrl-mtk-mt2712.h pinctrl: mediatek: Use the correct style for SPDX License Identifier 2019-12-12 11:30:33 +01:00
pinctrl-mtk-mt6397.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt6765.h pinctrl: mediatek: add MT6765 pinctrl driver 2018-09-21 09:12:55 -07:00
pinctrl-mtk-mt6779.h pinctrl: mediatek: add pinctrl support for MT6779 SoC 2020-08-04 01:29:09 +02:00
pinctrl-mtk-mt6797.h pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC 2018-11-15 11:05:54 +01:00
pinctrl-mtk-mt8127.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8135.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
pinctrl-mtk-mt8167.h pinctrl: mediatek: Add MT8167 Pinctrl driver 2020-09-27 11:20:09 +02:00
pinctrl-mtk-mt8173.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
pinctrl-mtk-mt8183.h pinctrl: mediatek: add MT8183 pinctrl driver 2018-09-18 14:53:29 -07:00
pinctrl-mtk-mt8192.h pinctrl: mediatek: Add pinctrl driver for mt8192 2020-08-27 10:50:57 +02:00
pinctrl-mtk-mt8195.h pinctrl: add pinctrl driver on mt8195 2021-04-22 01:53:02 +02:00
pinctrl-mtk-mt8365.h pinctrl: mediatek: add support for mt8365 SoC 2021-05-27 16:50:15 +02:00
pinctrl-mtk-mt8516.h pinctrl: mediatek: Add MT8516 Pinctrl driver 2019-05-03 07:53:13 +01:00
pinctrl-paris.c pinctrl: mediatek: use spin lock in mtk_rmw 2021-04-22 01:53:29 +02:00
pinctrl-paris.h pinctrl: mediatek: Add support for pin configuration dump via debugfs. 2020-02-14 11:38:26 +01:00