Re: [PATCH] rtc-m48t59: fix setting of a year on m48t08 and m48t02 rtcs

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

 



On Sat, 4 Oct 2008 15:26:07 +0400
"Alexander Beregalov" <a.beregalov@xxxxxxxxx> wrote:

> 2008/10/4  <krzysztof.h1@xxxxxxxxx>:
> > Do you reboot your system with different kernel versions (-next and mainline) or other systems?
> Yes, I tested mainline and sparc-next kernels on two Ultra 10s, but I
> could not find the rule how it happens.
> It means it does not happen every time I use sparc-next or every time
> I use mainline right after sparc-next.
> 

Ok.

I found the problem. The rtc-m48t59 driver sets a century bit if the year is over 2000. It is not correct on sparc as the first year is 1968 (so the century bit is needed in year 2168).

The only sane solution is to reduce mostek_read_byte() and mostek_write_byte() and move the sparc specific year offset (1968) into the rtc-m48t59 driver.

I'll prepare a patch.

Thank you for reporting this,
Krzysztof

----------------------------------------------------------------------
Dodaj strone www do katalogu. Pokaz ze istniejesz!
Sprawdz jak >> http://link.interia.pl/f1f2a 


--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux