m68k: Fix calendar month regression on M68328
Greg Ungerer
Acked-byHi Finn,
Quoted 9 lines · Finn Thain
My earlier fix for
read_persistent_clock()neglected to coverm68328_hwclk(). Correct this oversight.Cc Geert Uytterhoeven <[email protected]>Signed-off-by Finn Thain <[email protected]>---
Greg, theread_persistent_clock()change has already been queued by Geert. Should this patch be pushed together with that one (presuming your ack)? Sorry for the inconvenience.
If Geert is happy to add it to his tree that would seem to make sense. Otherwise I can take it via the m68knommu tree. Either way:
Regards
Greg
Quoted 20 lines
--- arch/m68k/68000/timers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)arch/m68k/68000/timers.c +3
-1@@ -125,7 +125,9 @@ int m68328_hwclk(int set, struct rtc_time *t) {if (!set) {long now =RTCTIME ; - t->tm_year = t->tm_mon = t->tm_mday =1 ; + t->tm_year =1 ; + t->tm_mon =0 ; + t->tm_mday =1 ; t->tm_hour = (now >>24 ) %24 ; t->tm_min = (now >>16 ) %60 ; t->tm_sec = now %60 ;
Hi Greg, Finn,
Quoted 11 lines · Greg Ungerer
Quoted 9 lines · Finn Thain
My earlier fix for
read_persistent_clock()neglected to coverm68328_hwclk(). Correct this oversight.Cc Geert Uytterhoeven <[email protected]>Signed-off-by Finn Thain <[email protected]>---
Greg, theread_persistent_clock()change has already been queued by Geert. Should this patch be pushed together with that one (presuming your ack)? Sorry for the inconvenience.
Quoted 4 lines
If Geert is happy to add it to his tree that would seem to make sense. Otherwise I can take it via the m68knommu tree. Either way:
Acked-by Greg Ungerer <[email protected]>
I'm reconsidering.
I'll apply it to my tree, and fold it into the original fix for v4.18.
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds