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

Reply via email to