Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtc: rtc-pl031: Set wakeup flag prior to registering rtcdev
In some recent testing, I noticed the CLOCK_REALTIME_ALARM clockid wasn't functioning on my vexpress qemu environment. Looking into it I noticed the pl031 rtc driver doesn't set the wakeup flag on the device until after registering the device with the RTC subsystem. This causes the alarmtimer subsystem to not see the pl031 driver as a valid backing device, and that resuls in alarm clockids getting ENOTSUPP errors. Thus be sure to set the wakeup flag on the device prior to registering the rtcdev so the pl031 rtc driver can be used as the backing alarmtimer device. Cc: Linus Walleij <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: "Jon Medhurst (Tixy)" <[email protected]> Cc: [email protected] Acked-by: Linus Walleij <[email protected]> Signed-off-by: John Stultz <[email protected]>
- Loading branch information