Files
android_kernel_xiaomi_sm8450/drivers/rtc
Alexandre Belloni abfdff44bc rtc: ensure rtc_set_alarm fails when alarms are not supported
When using RTC_ALM_SET or RTC_WKALM_SET with rtc_wkalrm.enabled not set,
rtc_timer_enqueue() is not called and rtc_set_alarm() may succeed but the
subsequent RTC_AIE_ON ioctl will fail. RTC_ALM_READ would also fail in that
case.

Ensure rtc_set_alarm() fails when alarms are not supported to avoid letting
programs think the alarms are working for a particular RTC when they are
not.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2018-06-07 20:09:49 +02:00
..
2018-05-31 23:02:11 +02:00
2018-05-21 22:34:38 +02:00
2018-03-27 10:45:05 +02:00
2018-05-17 22:23:14 +02:00
2018-03-17 14:20:56 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2017-09-01 01:10:11 +02:00
2018-05-31 23:02:11 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2018-03-17 14:20:50 +01:00
2018-05-03 22:08:00 +02:00
2018-05-18 09:38:22 +02:00
2018-05-03 22:08:00 +02:00
2018-03-17 14:20:56 +01:00
2018-06-05 21:01:59 +02:00
2018-05-03 22:08:00 +02:00
2018-05-22 09:47:17 +02:00
2018-05-03 22:08:00 +02:00
2017-08-22 12:05:21 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2018-05-17 22:43:22 +02:00
2018-03-17 14:20:57 +01:00
2017-08-24 11:03:35 +02:00
2018-05-03 22:08:00 +02:00
2018-05-23 09:26:19 +02:00
2018-05-03 22:08:00 +02:00
2018-03-17 14:20:54 +01:00
2018-05-17 22:37:11 +02:00
2018-05-17 22:54:21 +02:00
2016-05-20 12:33:51 +02:00
2018-05-03 22:08:00 +02:00