Skip to contentSkip to conversation

clk: sunxi: a80: Fix reset description

PATCH In review Andre Przywara 2 participants 2 messages Oct 6, 2024 – Oct 25, 2024

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

PATCH 1/1 clk: sunxi: a80: Fix reset description

Clock gates and reset lines share a common structure in the sunxi clock driver descriptions, but use different flags to tell them apart.

The description of the Allwinner A80 MMC clock reset lines was erroneously using the "GATE" macro, which made the reset driver ignore that entry, complaining with:
sunxi_set_reset: (RST-reset:#0) unhandled

Change that to the correct "RESET" macro, to make the reset driver happy.

Fixes e0c7ce7e52b7 ("sunxi: clk: A80: add MMC clock support")

---
 drivers/clk/sunxi/clk_a80.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/clk/sunxi/clk_a80.c +4 -4
index e26d42a5e71..4e37fa39986 100644
@@ -77,10 +77,10 @@ static const struct ccu_clk_gate a80_mmc_gates[] = {
 };
 
 static const struct ccu_reset a80_mmc_resets[] = {
-	[0]			= GATE(0x0, BIT(18)),
-	[1]			= GATE(0x4, BIT(18)),
-	[2]			= GATE(0x8, BIT(18)),
-	[3]			= GATE(0xc, BIT(18)),
+	[0]			= RESET(0x0, BIT(18)),
+	[1]			= RESET(0x4, BIT(18)),
+	[2]			= RESET(0x8, BIT(18)),
+	[3]			= RESET(0xc, BIT(18)),
 };
 
 static const struct ccu_clk_gate a80_usb_gates[] = {
Signature · 1 line
2.46.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Andre Przywara

Clock gates and reset lines share a common structure in the sunxi clock driver descriptions, but use different flags to tell them apart.

The description of the Allwinner A80 MMC clock reset lines was erroneously using the "GATE" macro, which made the reset driver ignore that entry, complaining with:
sunxi_set_reset: (RST-reset:#0) unhandled

Quoted 5 lines

Change that to the correct "RESET" macro, to make the reset driver happy.

Fixes e0c7ce7e52b7 ("sunxi: clk: A80: add MMC clock support")

Quoted 26 lines
---
 drivers/clk/sunxi/clk_a80.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/clk/sunxi/clk_a80.c +4 -5
index e26d42a5e71..4e37fa39986 100644
@@ -77,10 +77,10 @@ static const struct ccu_clk_gate a80_mmc_gates[] = {
 };
 
 static const struct ccu_reset a80_mmc_resets[] = {
-       [0]                     = GATE(0x0, BIT(18)),
-       [1]                     = GATE(0x4, BIT(18)),
-       [2]                     = GATE(0x8, BIT(18)),
-       [3]                     = GATE(0xc, BIT(18)),
+       [0]                     = RESET(0x0, BIT(18)),
+       [1]                     = RESET(0x4, BIT(18)),
+       [2]                     = RESET(0x8, BIT(18)),
+       [3]                     = RESET(0xc, BIT(18)),
 };
 
 static const struct ccu_clk_gate a80_usb_gates[] = {
--

2.46.2