Most recent kernel where this bug did not occur: Distribution: Hardware Environment: Software Environment: Problem Description: hwclock returns an improper date reading a max6902 rtc in october Steps to reproduce: In a machine with a max6902 rtc, in october, just run hwclok Fix: In drivers/rtc/rtc-max6902.c, function max6902_get_datetime, line 139: dt->tm_mon = BCD2BIN(chip->buf[5] - 1); should be replaced for: dt->tm_mon = BCD2BIN(chip->buf[5]) - 1; Explanetion: first convert to binary and then decrement. Fortunately is only detectable in october.
I queued a fix, thanks.