Skip to contentSkip to conversation

pinctrl: mediatek: Drop bogus slew rate register range for MT8186

PATCH In review Chen-Yu Tsai 3 participants 5 messages Jan 31, 2024 – Feb 7, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pinctrl: mediatek: Drop bogus slew rate register range for MT8186

The MT8186 does not support configuring pin slew rate. This is evident from both the datasheet, and the fact that the driver points the slew rate register range at the GPIO direction register range.

Drop the bogus setting.

Fixes 8b483bda1e46 ("pinctrl: add pinctrl driver on mt8186")
---
 drivers/pinctrl/mediatek/pinctrl-mt8186.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pinctrl/mediatek/pinctrl-mt8186.c +0 -1
index 7be591591cce..dd19e74856a9 100644
@@ -1198,7 +1198,6 @@ static const struct mtk_pin_reg_calc mt8186_reg_cals[PINCTRL_PIN_REG_MAX] = {
 	[PINCTRL_PIN_REG_DIR] = MTK_RANGE(mt8186_pin_dir_range),
 	[PINCTRL_PIN_REG_DI] = MTK_RANGE(mt8186_pin_di_range),
 	[PINCTRL_PIN_REG_DO] = MTK_RANGE(mt8186_pin_do_range),
-	[PINCTRL_PIN_REG_SR] = MTK_RANGE(mt8186_pin_dir_range),
 	[PINCTRL_PIN_REG_SMT] = MTK_RANGE(mt8186_pin_smt_range),
 	[PINCTRL_PIN_REG_IES] = MTK_RANGE(mt8186_pin_ies_range),
 	[PINCTRL_PIN_REG_PU] = MTK_RANGE(mt8186_pin_pu_range),
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
#1 lore raw

PATCH 2/2 pinctrl: mediatek: Drop bogus slew rate register range for MT8192

The MT8192 does not support configuring pin slew rate. This is evident from both the datasheet, and the fact that the driver points the slew rate register range at the GPIO direction register range.

Drop the bogus setting.

Fixes d32f38f2a8fc ("pinctrl: mediatek: Add pinctrl driver for mt8192")
---
 drivers/pinctrl/mediatek/pinctrl-mt8192.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pinctrl/mediatek/pinctrl-mt8192.c +0 -1
index e3a76381f7f4..3f8a9dbcb704 100644
@@ -1379,7 +1379,6 @@ static const struct mtk_pin_reg_calc mt8192_reg_cals[PINCTRL_PIN_REG_MAX] = {
 	[PINCTRL_PIN_REG_DIR] = MTK_RANGE(mt8192_pin_dir_range),
 	[PINCTRL_PIN_REG_DI] = MTK_RANGE(mt8192_pin_di_range),
 	[PINCTRL_PIN_REG_DO] = MTK_RANGE(mt8192_pin_do_range),
-	[PINCTRL_PIN_REG_SR] = MTK_RANGE(mt8192_pin_dir_range),
 	[PINCTRL_PIN_REG_SMT] = MTK_RANGE(mt8192_pin_smt_range),
 	[PINCTRL_PIN_REG_IES] = MTK_RANGE(mt8192_pin_ies_range),
 	[PINCTRL_PIN_REG_PU] = MTK_RANGE(mt8192_pin_pu_range),
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
maintainer Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192

Il 31/01/24 08:19, Chen-Yu Tsai ha scritto:

Quoted 8 lines

The MT8192 does not support configuring pin slew rate. This is evident from both the datasheet, and the fact that the driver points the slew rate register range at the GPIO direction register range.

Drop the bogus setting.

Fixes d32f38f2a8fc ("pinctrl: mediatek: Add pinctrl driver for mt8192")
maintainer Reviewed-by on v1 1/2
#3 lore raw
In reply to Chen-Yu Tsai

Il 31/01/24 08:19, Chen-Yu Tsai ha scritto:

Quoted 8 lines

The MT8186 does not support configuring pin slew rate. This is evident from both the datasheet, and the fact that the driver points the slew rate register range at the GPIO direction register range.

Drop the bogus setting.

Fixes 8b483bda1e46 ("pinctrl: add pinctrl driver on mt8186")

Argh :-)

#4 lore raw
In reply to Chen-Yu Tsai
Quoted 8 lines · Chen-Yu Tsai

The MT8186 does not support configuring pin slew rate. This is evident from both the datasheet, and the fact that the driver points the slew rate register range at the GPIO direction register range.

Drop the bogus setting.

Fixes 8b483bda1e46 ("pinctrl: add pinctrl driver on mt8186")

Patches applied!

Yours,
Linus Walleij