rtc: snvs: make sure clock is enabled for interrupt handle
authorAnson Huang <anson.huang@nxp.com>
Fri, 11 Jan 2019 07:09:02 +0000 (07:09 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 5 Feb 2019 22:11:31 +0000 (23:11 +0100)
commitedb190cb173416b9d7f59b3887ecc43f6d94a9ad
tree078ba7bf72ac4fae669e1e36e6013a88c32df3a7
parentf0c04c276739ed8acbb41b4868e942a55b128dca
rtc: snvs: make sure clock is enabled for interrupt handle

During system suspend, the SNVS RTC's clock will be disabled in
noirq suspend phase, but SNVS RTC's alarm interrupt could still
arrive, system will hang if SNVS RTC driver tries to access register
without clock enabled, this patch fixes the issue of this scenario.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-snvs.c