]> 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>
Thu, 7 Feb 2013 01:27:47 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:17 +0000 (16:47 +1100)
commit8a333cabc6d49bb35800194a7dc4dc7535a7c548
tree4564d68f635595f9beb52f14585761c467e35471
parenta63e4553772af70e7a699a31eda74bf89da75ea2
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