summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAntoni Pokusinski <apokusinski01@gmail.com>2026-09-16 22:51:33 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-10-09 17:03:20 +0200
commit632916c7bde35495f2f6776d8e335c3ec6e306ec (patch)
treeafc3f878e544d35203008740e6d2ae87d5f8ed3f /tools/lib/python
parent74bff654a4ced9f5fc6bac9931a5d251f7795db4 (diff)
downloadlinux-next-632916c7bde35495f2f6776d8e335c3ec6e306ec.tar.gz
linux-next-632916c7bde35495f2f6776d8e335c3ec6e306ec.zip
rtc: abx80x: properly handle shared IRQs
The abx80x RTC driver registers its interrupt handler with IRQF_SHARED, but the handler always returned IRQ_HANDLED and cleared the status register even when no interrupt source from the RTC was active. This could cause the driver to claim interrupts belonging to other devices sharing the same IRQ line and could also clear unrelated status bits in the RTC status register. Only handle the interrupt when the alarm or watchdog flags are set, and clear only those interrupt status bits that were handled. Return IRQ_NONE when the interrupt was not generated by the RTC. Fixes: 718a820a303c ("rtc: abx80x: add alarm support") Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com> Link: https://patch.msgid.link/20260916205138.16771-5-apokusinski01@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions