Skip to content

Commit 079062b

Browse files
andy-shevalexandrebelloni
authored andcommitted
rtc: cmos: prevent kernel warning on IRQ flags mismatch
The Microsoft Surface 3 tablet shares interrupt line between RTC and one of SPI controllers. However, the rtc_cmos driver doesn't allow shared interrupts and user sees the following warning genirq: Flags mismatch irq 8. 00000080 (8086228E:02) vs. 00000000 (rtc0) ... [<ffffffffa004eb01>] pxa2xx_spi_probe+0x151/0x600 [spi_pxa2xx_platform] Allow RTC driver to use shared interrupts. Seems we are on the safe side to do just this simple change since cmos_interrupt() handler checks for the actual hardware status anyway. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
1 parent c4c23f5 commit 079062b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-cmos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
725725
rtc_cmos_int_handler = cmos_interrupt;
726726

727727
retval = request_irq(rtc_irq, rtc_cmos_int_handler,
728-
0, dev_name(&cmos_rtc.rtc->dev),
728+
IRQF_SHARED, dev_name(&cmos_rtc.rtc->dev),
729729
cmos_rtc.rtc);
730730
if (retval < 0) {
731731
dev_dbg(dev, "IRQ %d is already in use\n", rtc_irq);

0 commit comments

Comments
 (0)