android_kernel_xiaomi_sm8350/drivers/pinctrl/mediatek
Chen-Yu Tsai ef9ea1c4a7 pinctrl: mediatek: paris: Fix PIN_CONFIG_INPUT_SCHMITT_ENABLE readback
commit 08f66a8edd08f6f7cfa769c81634b29a2b123908 upstream.

In the generic pin config library, readback of some options are handled
differently compared to the setting of those options: the argument value
is used to convey enable/disable of an option in the set path, but
success or -EINVAL is used to convey if an option is enabled or disabled
in the debugfs readback path.

PIN_CONFIG_INPUT_SCHMITT_ENABLE is one such option. Fix the readback of
the option in the mediatek-paris library, so that the debugfs dump is
not showing "input schmitt enabled" for pins that don't have it enabled.

Fixes: 1bea6afbc842 ("pinctrl: mediatek: Refine mtk_pinconf_get()")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Message-ID: <20240327091336.3434141-2-wenst@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-17 11:43:56 +02:00
..
Kconfig
Makefile pinctrl: mediatek: Add MT8516 Pinctrl driver 2019-05-03 07:53:13 +01:00
mtk-eint.c pinctrl: meditatek: Startup with the IRQs disabled 2022-12-19 12:24:16 +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-moore.h
pinctrl-mt2701.c
pinctrl-mt2712.c
pinctrl-mt6397.c
pinctrl-mt6765.c pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage 2024-05-17 11:43:47 +02:00
pinctrl-mt6797.c
pinctrl-mt7622.c
pinctrl-mt7623.c
pinctrl-mt7629.c
pinctrl-mt8127.c
pinctrl-mt8135.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
pinctrl-mt8173.c
pinctrl-mt8183.c pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage 2024-05-17 11:43:47 +02:00
pinctrl-mt8516.c
pinctrl-mtk-common-v2.c pinctrl: mediatek: remove set but not used variable 'e' 2024-05-17 11:43:56 +02:00
pinctrl-mtk-common-v2.h pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage 2024-05-17 11:43:47 +02:00
pinctrl-mtk-common.c
pinctrl-mtk-common.h
pinctrl-mtk-mt2701.h
pinctrl-mtk-mt2712.h
pinctrl-mtk-mt6397.h
pinctrl-mtk-mt6765.h
pinctrl-mtk-mt6797.h
pinctrl-mtk-mt8127.h pinctrl: mtk: fix check warnings. 2018-03-26 10:58:33 +02:00
pinctrl-mtk-mt8135.h Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
pinctrl-mtk-mt8173.h
pinctrl-mtk-mt8183.h
pinctrl-mtk-mt8516.h
pinctrl-paris.c pinctrl: mediatek: paris: Fix PIN_CONFIG_INPUT_SCHMITT_ENABLE readback 2024-05-17 11:43:56 +02:00
pinctrl-paris.h