intel_mdf_battery: move .suspend/.resume to .prepare/.complete
authorIllyas Mansoor <illyas.mansoor@intel.com>
Mon, 18 Jun 2012 17:58:51 +0000 (23:28 +0530)
committerbuildbot <buildbot@intel.com>
Wed, 27 Jun 2012 19:07:59 +0000 (12:07 -0700)
commitf062714b69c10c8fb19c40e3939a1859f293336e
tree86662e8cb1e296f082ce22b09056024a0a55c167
parent55a1a8e8d0d0f1cea22f0d5e23bbe75dfcbf7056
intel_mdf_battery: move .suspend/.resume to .prepare/.complete

BZ: 42523

Medfield battery driver stops and starts the charger health monitoring
workqueue, this issues a lot of IPC commands and interferes with D0ix
transitions that are happening during system suspend/resume, causing
SCU contention and in rare cases d0ix transition timeouts.

Fixing this by moving the .suspend/.resume callbacks to .prepare/.complete

Added a delay during scheduling the workqueue in complete().

Change-Id: Iab4ce37e12bc1f3c3b4b530692bfe129fa64bb8f
Signed-off-by: Illyas Mansoor <illyas.mansoor@intel.com>
Reviewed-on: http://android.intel.com:8080/53244
Reviewed-by: Tc, Jenny <jenny.tc@intel.com>
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Jena, TapanX <tapanx.jena@intel.com>
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/power/intel_mdf_battery.c