diff mbox series

[v1,2/2] pinctrl: mediatek: make MediaTek MT6765 pinctrl driver support race-free register access

Message ID 1597739776-15944-2-git-send-email-light.hsieh@mediatek.com
State New
Headers show
Series None | expand

Commit Message

Light Hsieh (謝明燈) Aug. 18, 2020, 8:36 a.m. UTC
From: Light Hsieh <light.hsieh@mediatek.com>


This patch make MediaTek MT6765 pinctrl driver support race-free register access

Signed-off-by: Light Hsieh <light.hsieh@mediatek.com>

---
 drivers/pinctrl/mediatek/pinctrl-mt6765.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
1.8.1.1.dirty
diff mbox series

Patch

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6765.c b/drivers/pinctrl/mediatek/pinctrl-mt6765.c
index 2c59d39..f33c371 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt6765.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt6765.c
@@ -1071,6 +1071,8 @@ 
 	.ngrps = ARRAY_SIZE(mtk_pins_mt6765),
 	.eint_hw = &mt6765_eint_hw,
 	.gpio_m = 0,
+	.race_free_access = true,
+	.mwr_field_width = 4,
 	.base_names = mt6765_pinctrl_register_base_names,
 	.nbase_names = ARRAY_SIZE(mt6765_pinctrl_register_base_names),
 	.bias_set_combo = mtk_pinconf_bias_set_combo,