Skip to contentSkip to conversation

arm/twd: use smp_twd clock even with DT

PATCH New Gilles Chanteperdrix 2 participants 2 messages Apr 6, 2014 – Apr 7, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/twd: use smp_twd clock even with DT

Booting Linux 3.14 on Pandaboard currently gets the following message displayed:

smp_twd: clock not found -2

Whereas an "smp_twd" clock exists for omap4. The following change avoids this.

---
 arch/arm/kernel/smp_twd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/smp_twd.c +1 -1
index 6591e26..67754af 100644
@@ -246,7 +246,7 @@ static void twd_get_clock(struct device_node *np)
 
 	if (np)
 		twd_clk = of_clk_get(np, 0);
-	else
+	if (np == NULL || IS_ERR(twd_clk))
 		twd_clk = clk_get_sys("smp_twd", NULL);
 
 	if (IS_ERR(twd_clk)) {
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 arm/twd: use smp_twd clock even with DT

Quoted 7 lines · Gilles Chanteperdrix

Booting Linux 3.14 on Pandaboard currently gets the following message displayed:

smp_twd: clock not found -2

Whereas an "smp_twd" clock exists for omap4. The following change avoids this.

NAK. The TWD has required this clock for 15 months, and all OMAP has to do is to supply the clock in its DT description. Why is OMAP not supplying this clock?

Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.