]> git.karo-electronics.de Git - linux-beck.git/commit
rtc-cmos: Add an alarm disable quirk
authorBorislav Petkov <bp@alien8.de>
Sat, 20 Jul 2013 17:00:23 +0000 (19:00 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 23 Dec 2013 20:52:20 +0000 (12:52 -0800)
commitd5a1c7e3fc38d9c7d629e1e47f32f863acbdec3d
tree522b0bed699a8717025f05deb4dc016975f6e9bf
parentd26e4fe0dbe95778b9dbe80b6aa884d71fb6f459
rtc-cmos: Add an alarm disable quirk

41c7f7424259f ("rtc: Disable the alarm in the hardware (v2)") added the
functionality to disable the RTC wake alarm when shutting down the box.

However, there are at least two b0rked BIOSes we know about:

https://bugzilla.novell.com/show_bug.cgi?id=812592
https://bugzilla.novell.com/show_bug.cgi?id=805740

where, when wakeup alarm is enabled in the BIOS, the machine reboots
automatically right after shutdown, regardless of what wakeup time is
programmed.

Bisecting the issue lead to this patch so disable its functionality with
a DMI quirk only for those boxes.

Cc: Brecht Machiels <brecht@mos6581.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Rabin Vincent <rabin.vincent@stericsson.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
[jstultz: Changed variable name for clarity, added extra dmi entry]
Tested-by: Brecht Machiels <brecht@mos6581.org>
Tested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/rtc-cmos.c