Skip to contentSkip to conversation

clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

PATCH Superseded [email protected] 2 participants 5 messages Jun 4, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: sunxi-ng: sun50i-h6-r: Fix incorrect W1 clock gate register

From: Ondrej Jirman <[email protected]>

The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate.

Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared, due to IR module's bus being disabled).

---
 drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c +1 -1
index 27554eaf6929..8d05d4f1f8a1 100644
@@ -104,7 +104,7 @@ static SUNXI_CCU_GATE(r_apb2_i2c_clk,	"r-apb2-i2c",	"r-apb2",
 static SUNXI_CCU_GATE(r_apb1_ir_clk,	"r-apb1-ir",	"r-apb1",
 		      0x1cc, BIT(0), 0);
 static SUNXI_CCU_GATE(r_apb1_w1_clk,	"r-apb1-w1",	"r-apb1",
-		      0x1cc, BIT(0), 0);
+		      0x1ec, BIT(0), 0);
 
 /* Information of IR(RX) mod clock is gathered from BSP source code */
 static const char * const r_mod0_default_parents[] = { "osc32k", "osc24M" };
Signature · 1 line
2.21.0
maintainer
#1 lore raw

Dne torek, 04. junij 2019 ob 17:00:54 CEST je megous via linux-sunxi napisal(a):

Quoted 10 lines

From: Ondrej Jirman <[email protected]>

The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate.

Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared, due to IR module's bus being disabled).

You should add Fixes tag and CC stable with this.

Best regards,
Jernej

#2 lore raw

Hi Jernej,

Quoted 7 lines · Jernej Škrabec

Dne torek, 04. junij 2019 ob 17:00:54 CEST je megous via linux-sunxi napisal(a):

Quoted 5 lines

From: Ondrej Jirman <[email protected]>

The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate.

Quoted 7 lines
Quoted 5 lines

Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared, due to IR module's bus being disabled).

You should add Fixes tag and CC stable with this.

Not necessary, since H6 IR is not yet supported on mainline.

regards,

	o.
Quoted 9 lines

Best regards,
Jernej

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer
#3 lore raw

Hi!

Dne torek, 04. junij 2019 ob 17:31:20 CEST je 'Ondřej Jirman' via linux-sunxi napisal(a):

Quoted 16 lines

Hi Jernej,

Quoted 13 lines · Jernej Škrabec

Dne torek, 04. junij 2019 ob 17:00:54 CEST je megous via linux-sunxi

napisal(a):

Quoted 10 lines

From: Ondrej Jirman <[email protected]>

The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate.

Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared,
due to IR module's bus being disabled).

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

You should add Fixes tag and CC stable with this.

Not necessary, since H6 IR is not yet supported on mainline.

Well, CCing stable is probably really not necessary, but you are fixing bug in existing driver (clk), fixes tag still apply.

Best regards,
Jernej

Quoted 13 lines

regards,

	o.
Quoted 9 lines

Best regards,
Jernej

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

Hello Jernej,

Quoted 20 lines · Jernej Škrabec

Hi!

Dne torek, 04. junij 2019 ob 17:31:20 CEST je 'Ondřej Jirman' via linux-sunxi napisal(a):

Quoted 16 lines

Hi Jernej,

Quoted 13 lines · Jernej Škrabec

Dne torek, 04. junij 2019 ob 17:00:54 CEST je megous via linux-sunxi

napisal(a):

Quoted 10 lines

From: Ondrej Jirman <[email protected]>

The current code defines W1 clock gate to be at 0x1cc, overlaying it with the IR gate.

Clock gate for r-apb1-w1 is at 0x1ec. This fixes issues with IR receiver causing interrupt floods on H6 (because interrupt flags can't be cleared,
due to IR module's bus being disabled).

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

You should add Fixes tag and CC stable with this.

Not necessary, since H6 IR is not yet supported on mainline.

Well, CCing stable is probably really not necessary, but you are fixing bug in existing driver (clk), fixes tag still apply.

Right, resent v2.

thank you and regards,

	o.
Quoted 25 lines

Best regards,
Jernej

Quoted 13 lines

regards,

	o.
Quoted 9 lines

Best regards,
Jernej

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel