mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186
@ 2024-01-31  7:19 Chen-Yu Tsai
  2024-01-31  7:19 ` [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192 Chen-Yu Tsai
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chen-Yu Tsai @ 2024-01-31  7:19 UTC (permalink / raw)
  To: Sean Wang, Linus Walleij, Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Chen-Yu Tsai, linux-mediatek, linux-arm-kernel, linux-gpio, linux-kernel

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")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
 drivers/pinctrl/mediatek/pinctrl-mt8186.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8186.c b/drivers/pinctrl/mediatek/pinctrl-mt8186.c
index 7be591591cce..dd19e74856a9 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8186.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8186.c
@@ -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),
-- 
2.43.0.429.g432eaa2c6b-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192
  2024-01-31  7:19 [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 Chen-Yu Tsai
@ 2024-01-31  7:19 ` Chen-Yu Tsai
  2024-01-31  8:51   ` AngeloGioacchino Del Regno
  2024-01-31  8:51 ` [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 AngeloGioacchino Del Regno
  2024-02-07 10:48 ` Linus Walleij
  2 siblings, 1 reply; 5+ messages in thread
From: Chen-Yu Tsai @ 2024-01-31  7:19 UTC (permalink / raw)
  To: Sean Wang, Linus Walleij, Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Chen-Yu Tsai, linux-mediatek, linux-arm-kernel, linux-gpio, linux-kernel

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")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
 drivers/pinctrl/mediatek/pinctrl-mt8192.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8192.c b/drivers/pinctrl/mediatek/pinctrl-mt8192.c
index e3a76381f7f4..3f8a9dbcb704 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8192.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8192.c
@@ -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),
-- 
2.43.0.429.g432eaa2c6b-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192
  2024-01-31  7:19 ` [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192 Chen-Yu Tsai
@ 2024-01-31  8:51   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-01-31  8:51 UTC (permalink / raw)
  To: Chen-Yu Tsai, Sean Wang, Linus Walleij, Matthias Brugger
  Cc: linux-mediatek, linux-arm-kernel, linux-gpio, linux-kernel

Il 31/01/24 08:19, Chen-Yu Tsai ha scritto:
> 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")
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186
  2024-01-31  7:19 [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 Chen-Yu Tsai
  2024-01-31  7:19 ` [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192 Chen-Yu Tsai
@ 2024-01-31  8:51 ` AngeloGioacchino Del Regno
  2024-02-07 10:48 ` Linus Walleij
  2 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-01-31  8:51 UTC (permalink / raw)
  To: Chen-Yu Tsai, Sean Wang, Linus Walleij, Matthias Brugger
  Cc: linux-mediatek, linux-arm-kernel, linux-gpio, linux-kernel

Il 31/01/24 08:19, Chen-Yu Tsai ha scritto:
> 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")
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>

Argh :-)

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186
  2024-01-31  7:19 [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 Chen-Yu Tsai
  2024-01-31  7:19 ` [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192 Chen-Yu Tsai
  2024-01-31  8:51 ` [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 AngeloGioacchino Del Regno
@ 2024-02-07 10:48 ` Linus Walleij
  2 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2024-02-07 10:48 UTC (permalink / raw)
  To: Chen-Yu Tsai
  Cc: Sean Wang, Matthias Brugger, AngeloGioacchino Del Regno,
	linux-mediatek, linux-arm-kernel, linux-gpio, linux-kernel

On Wed, Jan 31, 2024 at 8:19 AM Chen-Yu Tsai <wenst@chromium.org> wrote:

> 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")
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>

Patches applied!

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-07 10:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-31  7:19 [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 Chen-Yu Tsai
2024-01-31  7:19 ` [PATCH 2/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8192 Chen-Yu Tsai
2024-01-31  8:51   ` AngeloGioacchino Del Regno
2024-01-31  8:51 ` [PATCH 1/2] pinctrl: mediatek: Drop bogus slew rate register range for MT8186 AngeloGioacchino Del Regno
2024-02-07 10:48 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®