diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2020-11-06 09:06:31 +0000 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-11-14 23:36:10 +0100 |
commit | c56ac7a0f468ceb38d24db41f4446d98ab94da2d (patch) | |
tree | ab07ee1bdc5facf211d23ba56d622f3220edddaa /drivers/rtc/rtc-cpcap.c | |
parent | a48c6224ae07bed02893c58073ca2942acb5c3d5 (diff) | |
download | lwn-c56ac7a0f468ceb38d24db41f4446d98ab94da2d.tar.gz lwn-c56ac7a0f468ceb38d24db41f4446d98ab94da2d.zip |
rtc: hym8563: enable wakeup when applicable
Enable wakeup in the hym8563 driver if the IRQ was successfully
requested or if wakeup-source is set in the devicetree.
As per the description of device_init_wakeup(), it should be enabled
for "devices that everyone expects to be wakeup sources". One would
expect this to be the case with a real-time clock.
Tested on rk3288-rock2-square, which has an IRQ configured for the
RTC. As a result, wakeup was enabled during driver initialisation.
Fixes: dcaf03849352 ("rtc: add hym8563 rtc-driver")
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1ea023e2ba50a4dab6e39be93d7de3146af71a60.1604653374.git.guillaume.tucker@collabora.com
Diffstat (limited to 'drivers/rtc/rtc-cpcap.c')
0 files changed, 0 insertions, 0 deletions