pinctrl: mediatek: common: add mt8365_set_clr_mode() callback for broken SET/CLR...
authorBalsam CHIHI <bchihi@baylibre.com>
Fri, 21 Oct 2022 08:47:07 +0000 (10:47 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Nov 2022 14:42:53 +0000 (15:42 +0100)
commitd459a2352211bf01c532def4f85eb8c2545c610a
tree11201d96257ab23211f0a5836c17885edcf6898b
parent76f3768132eab2c26c9d67022b452358adc28b2c
pinctrl: mediatek: common: add mt8365_set_clr_mode() callback for broken SET/CLR modes

On MT8365, the SET/CLR of the mode is broken and some pin modes won't
be set correctly.
Add mt8365_set_clr_mode() callback for such SoCs, so that instead of
using the SET/CLR register, use the main R/W register to
read/update/write the modes.

Co-developed-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Fabien Parent <fparent@baylibre.com>
Signed-off-by: Balsam CHIHI <bchihi@baylibre.com>
Link: https://lore.kernel.org/r/20221021084708.1109986-2-bchihi@baylibre.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
drivers/pinctrl/mediatek/pinctrl-mtk-common.h