[lkml]   [2019]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[tip: timers/core] clocksource/drivers/timer-of: Use unique device name instead of timer
The following commit has been merged into the timers/core branch of tip:

Commit-ID: 4411464d6f8b5e5759637235a6f2b2a85c2be0f1
Author: Geert Uytterhoeven <>
AuthorDate: Wed, 16 Oct 2019 16:47:45 +02:00
Committer: Daniel Lezcano <>
CommitterDate: Mon, 04 Nov 2019 10:38:46 +01:00

clocksource/drivers/timer-of: Use unique device name instead of timer

If a hardware-specific driver does not provide a name, the timer-of core
falls back to Due to generic DT node naming policies,
that name is almost always "timer", and thus doesn't identify the actual
timer used.

Fix this by using device_node.full_name instead, which includes the unit

Example impact on /proc/timer_list:

-Clock Event Device: timer
+Clock Event Device: timer@fcfec400

Signed-off-by: Geert Uytterhoeven <>
Reviewed-by: Rob Herring <>
Signed-off-by: Daniel Lezcano <>
drivers/clocksource/timer-of.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c
index 3843942..8c11bd7 100644
--- a/drivers/clocksource/timer-of.c
+++ b/drivers/clocksource/timer-of.c
@@ -190,7 +190,7 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to)

if (!to->
- to-> = np->name;
+ to-> = np->full_name;

to->np = np;

 \ /
  Last update: 2019-11-04 18:55    [W:0.078 / U:1.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site