]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: max77686: Do not allow interrupt to fire before system resume
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 15 Jun 2020 16:14:55 +0000 (18:14 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 16 Jul 2020 09:13:45 +0000 (11:13 +0200)
commitf7ba45d29122962deead3242a6034ce04c6a30b9
tree3d19fdcf2e85b8bdee897d2936d35abf55dbcc68
parentcd4f78da692231efc49af00cc19f5421a662f136
rtc: max77686: Do not allow interrupt to fire before system resume

The rtc-max77686 device shares the main interrupt line with parent MFD
device (max77686 driver).  During the system suspend, the parent MFD
device disables this IRQ to prevent an early event happening before
resuming I2C bus controller.

The same should be done by rtc-max77686 driver because otherwise the
interrupt handler max77686_rtc_alarm_irq() will be called before its
resume function (max77686_rtc_resume()).  Such issue is not fatal but
disabling shared IRQ by all users ensures correct behavior.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200615161455.4420-1-krzk@kernel.org
drivers/rtc/rtc-max77686.c