PM / mfd: intel-lpss: Use DPM_FLAG_SMART_SUSPEND
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Jan 2018 00:34:53 +0000 (01:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 9 Jan 2018 23:48:25 +0000 (00:48 +0100)
commit8425ec7faff005500aad89b9fc00e5ba91ac57b9
tree2b5c39e99644fe94e6b0d9bab586490e42817ee5
parent877b3729ca03b00800b99ac0c076e9456ef3ae6b
PM / mfd: intel-lpss: Use DPM_FLAG_SMART_SUSPEND

Make the intel-lpss driver set DPM_FLAG_SMART_SUSPEND for its
devices which will allow them to stay in runtime suspend during
system suspend unless they need to be reconfigured for some reason.

Also make it avoid resuming its child devices if they have
DPM_FLAG_SMART_SUSPEND set to allow them to remain in runtime
suspend during system suspend.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
drivers/mfd/intel-lpss.c