[PORT FROM R2] EM/BCU: Fix Sysburst behaviour in driver's suspend/resume path
authorDurgadoss R <durgadoss.r@intel.com>
Tue, 3 Jan 2012 16:31:00 +0000 (22:01 +0530)
committerbuildbot <buildbot@intel.com>
Tue, 3 Jan 2012 20:05:09 +0000 (12:05 -0800)
commitb66c0a7da26d8ac99036e48b6b272611aa2b9883
treef048412eece0d698fec23e066468f6fcb53a8ff3
parent1c85004c41655a2a4bc2fdfecff54f39a3dbdc70
[PORT FROM R2] EM/BCU: Fix Sysburst behaviour in driver's suspend/resume path

BZ: 18257

The intel_mid_ocd driver disables only the SYSACTEN bit during suspend.
But the SYSOUTEN signal can still be triggered by GSMPULSE (due to
hardware logic design). This patch corrects this behaviour by disabling
both the SYSACTEN and SYSOUTEN bits during suspend and programs these
bits according to battery_level during resume.

Change-Id: I6706fad725bddb299b36b61168c86cb82ce20deb
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Reviewed-on: http://android.intel.com:8080/30339
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: Chotard, Celine <celine.chotard@intel.com>
Tested-by: Chotard, Celine <celine.chotard@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hwmon/intel_mid_ocd.c