linux-stable/drivers/pinctrl/mediatek
Chen-Yu Tsai 54fe55fb38 pinctrl: mediatek: paris: Fix pingroup pin config state readback
mtk_pconf_group_get(), used to read back pingroup pin config state,
simply returns a set of configs saved from a previous invocation of
mtk_pconf_group_set(). This is an unfiltered, unvalidated set passed
in from the pinconf core, which does not match the current hardware
state.

Since the driver library is designed to have one pin per group, pass
through mtk_pconf_group_get() to mtk_pinconf_get(), to read back the
current pin config state of the only pin in the group.

Also drop the assignment of pin config state to the group.

Fixes: 805250982b ("pinctrl: mediatek: add pinctrl-paris that implements the vendor dt-bindings")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220308100956.2750295-5-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-03-15 01:24:15 +01:00
..
Kconfig pinctrl: add pinctrl driver on mt8186 2022-03-15 01:00:03 +01:00
Makefile pinctrl: add pinctrl driver on mt8186 2022-03-15 01:00:03 +01:00
mtk-eint.c pinctrl: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:39 +01:00
mtk-eint.h
pinctrl-moore.c pinctrl: Get rid of duplicate of_node assignment in the drivers 2021-12-16 04:18:30 +01:00
pinctrl-moore.h
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-mt6779.c
pinctrl-mt6797.c
pinctrl-mt7622.c
pinctrl-mt7623.c
pinctrl-mt7629.c
pinctrl-mt7986.c pinctrl: mediatek: add support for MT7986 SoC 2021-10-24 23:06:32 +02: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-mt8186.c pinctrl: add pinctrl driver on mt8186 2022-03-15 01:00:03 +01:00
pinctrl-mt8192.c
pinctrl-mt8195.c pinctrl: mediatek: add rsel setting on MT8195 2021-10-03 00:43:36 +02:00
pinctrl-mt8365.c pinctrl: mediatek: fix platform_no_drv_owner.cocci warnings 2021-07-23 18:11:30 +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 Pin control bulk changes for the v5.17 kernel cycle 2022-01-12 10:56:08 -08:00
pinctrl-mtk-common-v2.h pinctrl: mediatek: support rsel feature 2021-10-03 00:43:36 +02:00
pinctrl-mtk-common.c pinctrl: mediatek: Fix missing of_node_put() in mtk_pctrl_init 2022-03-15 01:21:27 +01: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
pinctrl-mtk-mt2712.h
pinctrl-mtk-mt6397.h
pinctrl-mtk-mt6765.h
pinctrl-mtk-mt6779.h
pinctrl-mtk-mt6797.h
pinctrl-mtk-mt8127.h
pinctrl-mtk-mt8135.h
pinctrl-mtk-mt8167.h
pinctrl-mtk-mt8173.h
pinctrl-mtk-mt8183.h
pinctrl-mtk-mt8186.h pinctrl: add pinctrl driver on mt8186 2022-03-15 01:00:03 +01:00
pinctrl-mtk-mt8192.h
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-paris.c pinctrl: mediatek: paris: Fix pingroup pin config state readback 2022-03-15 01:24:15 +01:00
pinctrl-paris.h