qemu-neo1973: Incorrect setting of "Month" in pcf5060x.c

Salil Bijur salilbijur at gmail.com
Thu Jan 24 11:04:36 CET 2008


Hi,

I was testing qemu-neo1973 and came across the code in hw/pcf5060x.c.

In the pcf_read and pcf_write functions, the month read from the
system date is incremented/decremented
eg.
case PCF_RTCMT:
        pcf_rtc_update(s);
        return to_bcd(s->rtc.tm.tm_mon + 1);

Please correct me if I'm wrong, but isn't this handled in the kernel
in drivers/rtc/htosys.c?
This causes the date to be displayed incorrectly, i.e. currently it
shows the month as February.

Thanks,
Salil



More information about the openmoko-devel mailing list