rtc: efi: switch to RTC_FEATURE_UPDATE_INTERRUPT
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 9 Mar 2022 16:22:55 +0000 (17:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:40 +0000 (19:58 +0100)
Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead.
Also the driver doesn't supports UIE because it doesn't handle interrupts
so set RTC_FEATURE_ALARM_WAKEUP_ONLY,.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220309162301.61679-24-alexandre.belloni@bootlin.com
drivers/rtc/rtc-efi.c

index 0c0e382c22e20d20c1d02a68da2f720777c6032e..11850c2880ad487d3e8b3306fe6057e766e40c1e 100644 (file)
@@ -268,7 +268,8 @@ static int __init efi_rtc_probe(struct platform_device *dev)
        platform_set_drvdata(dev, rtc);
 
        rtc->ops = &efi_rtc_ops;
-       rtc->uie_unsupported = 1;
+       clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features);
+       set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, rtc->features);
 
        return devm_rtc_register_device(rtc);
 }