]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: snvs: Make SNVS clock always prepared
authorAnson Huang <Anson.Huang@nxp.com>
Fri, 22 May 2020 02:19:55 +0000 (10:19 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 30 May 2020 01:17:48 +0000 (03:17 +0200)
commitfbbaa1eb62f5c6a119e16864c6d6c7951cf1ee37
tree912ad3b2381fe46c6c541c716101a6461fb1a2d2
parent7c6eee22ee4787ad7a08f59467d0939bd8182827
rtc: snvs: Make SNVS clock always prepared

In IRQ handler, ONLY clock enable/disable is called due to
clock prepare can NOT be called in interrupt context, but
clock enable/disable will return failure if prepare count
is 0, to fix this issue, just make SNVS clock always prepared
there, the SNVS clock has no prepare function implemented,
so it won't impact anything.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1590113996-31845-1-git-send-email-Anson.Huang@nxp.com
drivers/rtc/rtc-snvs.c