mfd: intel-lpss: Save register context on suspend
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 18 Apr 2016 12:14:56 +0000 (15:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:49 +0000 (18:18 -0700)
commit3bec9182274d5c8b6dd20949b14ffe584ad412b6
tree966ccc5409ec271732e0aeb28a34326dcab3ee9b
parent6bff15be8869b45e3bd6f4b8d4d60ebd08a1365a
mfd: intel-lpss: Save register context on suspend

commit 41a3da2b8e1639d983192e3650670df4ecc94cf7 upstream.

All configurations are lost and the registers will have
default values when the hardware is suspended and resumed,
so saving the private register space context on suspend, and
restoring it on resume.

Fixes: 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/intel-lpss.c