]> git.karo-electronics.de Git - linux-beck.git/commit
thermal: tango: add resume support
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Fri, 2 Sep 2016 13:17:17 +0000 (15:17 +0200)
committerZhang Rui <rui.zhang@intel.com>
Tue, 27 Sep 2016 06:02:16 +0000 (14:02 +0800)
commit9dfe1a2f9a5a582931e9ecf3efd8dac5e1f89072
treeeba37e4472af80abb6febba030bf0e3b343aaa4d
parente3da1cbed64a19babe91775e21fcd8887039e711
thermal: tango: add resume support

When this platform is suspended, firmware powers the entire SoC down,
except a few hardware blocks waiting for wakeup events. There is no
context to save for this particular block.

Therefore, there is nothing useful for the driver to do on suspend;
so we define a NULL suspend hook. On resume, the driver initializes
the block exactly as is done in the probe callback.

Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/tango_thermal.c