]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-tps65910.c: enable/disable wake in suspend/resume
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 20 Feb 2013 02:15:44 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:26 +0000 (16:53 +1100)
commitac39f827572d65c4a537bf079fdabe8a8092ade8
treeb64ddc3419203875976af073932edf7b82d1b975
parent65019a377325ce35844e5e7dbd9179e75ac9d194
drivers/rtc/rtc-tps65910.c: enable/disable wake in suspend/resume

Making the rtc driver as wakeup capabale and leaving the wake
enable/disable decision to user space through a sysfs attribute.

In suspend, enable wake if device wakeup enabled.  In resume disable wake
again.

This change is inline with the Documentation/power/devices.txt#
/sys/devices/.../power/wakeup files

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-tps65910.c