From: Zoran Markovic Date: Fri, 2 Aug 2013 20:38:02 +0000 (-0700) Subject: power_supply: Prevent suspend until power supply events are processed X-Git-Tag: v3.12-rc1~58^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=948dcf96622814d2a850a12851d27824530a9747;p=pandora-kernel.git power_supply: Prevent suspend until power supply events are processed This patch, originally authored by Arve Hjonnevag and Todd Poynor, prevents the system from entering suspend mode until the power supply plug, unplug, or any other change of state event is fully processed. This guarantees that the screen lights up and displays the battery charging state. The implementation uses the power supply wakeup_source object. Cc: David Woodhouse Cc: Arve Hjonnevag Cc: Todd Poynor Cc: John Stultz Signed-off-by: Zoran Markovic Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed