I tried setting WKALM and just get an error from the ioctl. There's also no /sys/class/rtc/rtc0/wakealarm.
So on your device you can get RTC alarms to work with other code but not mine? That's odd. I specifically tried to mimic pre-existing solutions, just simplified. It could be that WKALM is needed for the device to wake up (which your other code could use) but it wouldn't write to /dev/rtc0 either using just plain alarms, making my code fail on your device as well?
The fact that my test program generates interrupts in /proc/interrupts which are also logged in dmesg tells me the alarm is set and processed, but for some reason doesn't wake the device nor write to /dev/rtc0 as it should.
Guess I'll dig deeper into why WKALM didn't work if it should.
|