Skip to contentSkip to conversation

clk: ti: am43xx: Fix clock parent for RTC clock

PATCH In review Tony Lindgren 3 participants 5 messages Feb 21, 2020 – Mar 16, 2020

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

PATCH 1/1 clk: ti: am43xx: Fix clock parent for RTC clock

Currently enabling clkctrl clock on am4 can fail for RTC as the clock parent is wrong for RTC.

Fixes 76a1049b84dd ("clk: ti: am43xx: add new clkctrl data for am43xx")

---

It is unclear if we can end up with RTC hung with the current mainline kernel in some cases. Probing RTC with device tree data only seems to trigger this every time.

---
 drivers/clk/ti/clk-43xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/ti/clk-43xx.c +1 -1
@@ -78,7 +78,7 @@ static const struct omap_clkctrl_reg_data am4_gfx_l3_clkctrl_regs[] __initconst
 };
 
 static const struct omap_clkctrl_reg_data am4_l4_rtc_clkctrl_regs[] __initconst = {
-	{ AM4_L4_RTC_RTC_CLKCTRL, NULL, CLKF_SW_SUP, "clk_32768_ck" },
+	{ AM4_L4_RTC_RTC_CLKCTRL, NULL, CLKF_SW_SUP, "clkdiv32k_ick" },
 	{ 0 },
 };
 
Signature · 1 line
2.25.1
maintainer
#1 lore raw

Quoting Tony Lindgren (2020-02-21 09:10:30)

Quoted 10 lines

Currently enabling clkctrl clock on am4 can fail for RTC as the clock parent is wrong for RTC.

Fixes 76a1049b84dd ("clk: ti: am43xx: add new clkctrl data for am43xx")

---

It is unclear if we can end up with RTC hung with the current mainline kernel in some cases. Probing RTC with device tree data only seems to trigger this every time.

It's small enough and if it's annoying enough we can probably put it into clk-fixes to get it fixed for this release instead of waiting. Can Tero ack it?

Acked-by
#2 lore raw
Quoted 8 lines · Stephen Boyd

Quoting Tony Lindgren (2020-02-21 09:10:30)

Quoted 7 lines

Currently enabling clkctrl clock on am4 can fail for RTC as the clock parent is wrong for RTC.

Fixes 76a1049b84dd ("clk: ti: am43xx: add new clkctrl data for am43xx")

---

Quoted 8 lines
Quoted 3 lines

It is unclear if we can end up with RTC hung with the current mainline kernel in some cases. Probing RTC with device tree data only seems to trigger this every time.

It's small enough and if it's annoying enough we can probably put it into clk-fixes to get it fixed for this release instead of waiting. Can Tero ack it?

Sure,

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

maintainer
#3 lore raw

Quoting Tero Kristo (2020-03-16 07:48:30)

Quoted 23 lines · Stephen Boyd
Quoted 8 lines

Quoting Tony Lindgren (2020-02-21 09:10:30)

Quoted 7 lines

Currently enabling clkctrl clock on am4 can fail for RTC as the clock parent is wrong for RTC.

Fixes 76a1049b84dd ("clk: ti: am43xx: add new clkctrl data for am43xx")

---

Quoted 8 lines
Quoted 3 lines

It is unclear if we can end up with RTC hung with the current mainline kernel in some cases. Probing RTC with device tree data only seems to trigger this every time.

It's small enough and if it's annoying enough we can probably put it into clk-fixes to get it fixed for this release instead of waiting. Can Tero ack it?

Sure,

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

maintainer
#4 lore raw
In reply to Tero Kristo

Quoting Tero Kristo (2020-03-16 07:48:30)

Quoted 13 lines · Stephen Boyd
Quoted 12 lines

Quoting Tony Lindgren (2020-02-21 09:10:30)

Quoted 10 lines

Currently enabling clkctrl clock on am4 can fail for RTC as the clock parent is wrong for RTC.

Fixes 76a1049b84dd ("clk: ti: am43xx: add new clkctrl data for am43xx")

---

It is unclear if we can end up with RTC hung with the current mainline kernel in some cases. Probing RTC with device tree data only seems to trigger this every time.

Quoted 8 lines
Quoted 4 lines

It's small enough and if it's annoying enough we can probably put it into clk-fixes to get it fixed for this release instead of waiting. Can Tero ack it?

Sure,

Woops, hit send too fast. Thanks! Picked it into clk-fixes.