Re: [PATCH RESEND v3 0/7] rtc-cmos,rtc-mc146818-lib: fixes
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2021-11-19 21:22:45
Also in:
lkml
Hello Mateusz, I'm planning to review and take them soon (early next week), I found it was a bit late for the previous version. I'd like that to sit in linux-next for a while a rtc-cmos is kind of sensitive ;) On 19/11/2021 21:42:14+0100, Mateusz Jończyk wrote:
Hello,
This patch series fixes some issues in the RTC CMOS handling code:
1. A missing spin_lock_irq() / spin_unlock_irq() pair in cmos_set_alarm().
2. A failing presence check of the RTC: the clock was misdetected as
broken since Linux 5.11 on one of our home systems.
3. Do not touch the RTC alarm registers when the RTC update is in
progress. (On some Intel chipsets, this causes bogus values being
read or writes to fail silently.)
This is my first patch series, so please review carefully.
v2: Drop the last patch:
Revert "rtc: cmos: Replace spin_lock_irqsave with spin_lock in hard IRQ"
which was made obsolete by mainlining of
commit 13be2efc390a ("rtc: cmos: Disable irq around direct invocation of cmos_interrupt()")
v3: Rework solution to problem 3 (I'd like to thank Greg KH for comment),
drop x86 refactoring patches (I'll send them later).
Greetings,
Mateusz
Signed-off-by: Mateusz Jończyk <redacted>
Cc: Alessandro Zummo <redacted>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Greg KH <gregkh@linuxfoundation.org>-- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com