]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: mxc: avoid disabling interrupts on device close
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 23 Aug 2017 21:45:19 +0000 (23:45 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 24 Aug 2017 14:23:16 +0000 (16:23 +0200)
commit604c78235a35202e2150866dcf12f27eed5c6a04
treef994dae87e0d0e4c53ab36cc709daf3466d44af0
parent0a53a167224d1c8cb90166f7cce96631b635f33c
rtc: mxc: avoid disabling interrupts on device close

Currently, the IRQs are disabled when the rtc character device is closed.
This means that the device needs to stay open to get alarms while the usual
use case will open the device, set the alarm and close the device as is
done in rtcwake.

Keep the alarm functional on character device release so the platform can
actually wakeup.

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-mxc.c