[PORT FROM R2]max17042: block maxim registers reads during reboot
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Mon, 19 Dec 2011 08:18:39 +0000 (13:48 +0530)
committerbuildbot <buildbot@intel.com>
Tue, 24 Jan 2012 15:21:36 +0000 (07:21 -0800)
commit52f728b7ca02bdd3854821e432030e3fccc1768e
treea8b272f35d54589560d3a3f7dc8013c12cf62e50
parent7a50869d709ce4fdf99a191c4464c855cb80c2ab
[PORT FROM R2]max17042: block maxim registers reads during reboot

BZ: 15870

This patch blocks the maxim register reads during reboot, as
the chip cannot be recovered if the i2c transaction is broken.

Change-Id: I2dceba9ba9d863e3b6cf36b46f821ec4d26cf5a7
R2-Change-Id: I889135b8e76717d1fcbb742eca2e9ecccc9ac086
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Reviewed-on: http://android.intel.com:8080/32753
Reviewed-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/power/max17042_battery.c