* [PATCH] arm/twd: use smp_twd clock even with DT
@ 2014-04-06 19:38 Gilles Chanteperdrix
2014-04-07 9:03 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Gilles Chanteperdrix @ 2014-04-06 19:38 UTC (permalink / raw)
To: linux-arm-kernel
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.
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
---
arch/arm/kernel/smp_twd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c
index 6591e26..67754af 100644
--- a/arch/arm/kernel/smp_twd.c
+++ b/arch/arm/kernel/smp_twd.c
@@ -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)) {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm/twd: use smp_twd clock even with DT
2014-04-06 19:38 [PATCH] arm/twd: use smp_twd clock even with DT Gilles Chanteperdrix
@ 2014-04-07 9:03 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2014-04-07 9:03 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Apr 06, 2014 at 09:38:05PM +0200, Gilles Chanteperdrix wrote:
> 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?
--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-07 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 19:38 [PATCH] arm/twd: use smp_twd clock even with DT Gilles Chanteperdrix
2014-04-07 9:03 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).