Patch "clocksource/drivers/timer-of: Use unique device name instead of timer" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     clocksource-drivers-timer-of-use-unique-device-name-.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b3405cce6460585c9718e3cd67a1e283e7af946e
Author: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Date:   Wed Oct 16 16:47:45 2019 +0200

    clocksource/drivers/timer-of: Use unique device name instead of timer
    
    [ Upstream commit 4411464d6f8b5e5759637235a6f2b2a85c2be0f1 ]
    
    If a hardware-specific driver does not provide a name, the timer-of core
    falls back to device_node.name.  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
    addrees.
    
    Example impact on /proc/timer_list:
    
        -Clock Event Device: timer
        +Clock Event Device: timer@fcfec400
    
    Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Reviewed-by: Rob Herring <robh@xxxxxxxxxx>
    Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20191016144747.29538-3-geert+renesas@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c
index 06ed88a2a8a0..6e2cb3693ed8 100644
--- a/drivers/clocksource/timer-of.c
+++ b/drivers/clocksource/timer-of.c
@@ -199,7 +199,7 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to)
 	}
 
 	if (!to->clkevt.name)
-		to->clkevt.name = np->name;
+		to->clkevt.name = np->full_name;
 
 	to->np = np;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux