Skip to content

Fix broken SET/CLR mode of a certain number of pins for MediaTek MT8385 SoC

[email protected] linux-arm-kernel linux-gpio linux-mediatek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 4 repliesIn review

Changes in v2 from the cover letter

- Rebase on top of 6.1.0-rc1-next-20221020
- Delete MTK_PINCTRL_MODE_SET_CLR_BROKEN quirk
- Add mt8365_set_clr_mode() callback

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pinctrl: mediatek: common: add mt8365_set_clr_mode() callback for broken SET/CLR modesdrivers/pinctrl/mediatek/pinctrl-mtk-common.c drivers/pinctrl/mediatek/pinctrl-mtk-common.h+22 -10 replies
2/2pinctrl: mediatek: mt8365: use mt8365_set_clr_mode() callbackdrivers/pinctrl/mediatek/pinctrl-mt8365.c+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [v2, 0/2] Fix broken SET/CLR mode of a certain number of pins for MediaTek MT8385 SoC

From: Balsam CHIHI <[email protected]>

On MT8365, the SET/CLR of the mode is broken and some pins won't set or clear the modes correctly. To fix this issue, we add a specific callback mt8365_set_clr_mode() for this specific SoC. This callback uses the main R/W register to read/update/write the modes instead of using the SET/CLR register.

This is the original patch series proposed by Fabien Parent <[email protected]>. "https://lore.kernel.org/linux-arm-kernel/[email protected]/"

Changelog:
Changes in v2 :
- Rebase on top of 6.1.0-rc1-next-20221020
- Delete MTK_PINCTRL_MODE_SET_CLR_BROKEN quirk
- Add mt8365_set_clr_mode() callback

Changes in v1 :
- "https://lore.kernel.org/linux-arm-kernel/[email protected]/"

Balsam CHIHI (2):
pinctrl: mediatek: common: add mt8365_set_clr_mode() callback for
broken SET/CLR modes
pinctrl: mediatek: mt8365: use mt8365_set_clr_mode() callback

 drivers/pinctrl/mediatek/pinctrl-mt8365.c     | 18 ++++++++++++++++++
 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 15 +++++++++++++++
 drivers/pinctrl/mediatek/pinctrl-mtk-common.h |  8 +++++++-
 3 files changed, 40 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1