]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (w83627hf) Add support for suspend
authorJean Delvare <khali@linux-fr.org>
Tue, 30 Oct 2012 23:17:39 +0000 (10:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Oct 2012 23:17:39 +0000 (10:17 +1100)
commitfd93dabb511227499670afee9eac67a937daf9f7
treeedf0ae71fc089b94fc087cf774f45e31b88ffb2b
parent091df7b69c54e59398f32f054ca03c52845196e9
hwmon: (w83627hf) Add support for suspend

On suspend some register values are lost, most notably the Value RAM
areas but also other limits. Restore them on resume. On top of that,
some fixups are needed to work around BIOS bugs, in particular when
the BIOS omits running the same initialization sequence on resume
that it does after boot. In that case we have to carry initialization
over suspend.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/w83627hf.c