power: pm8921-bms: dont adjust if batfet is open

We observed a issue where the SOC was being reported lower than
100% after end of charge. When charging finishes, the pmic opens
up the batfet and isolates the battery from the circuit. However
the BMS does not read 0mA for battery current, possibly because
of some stray voltage on rsense, instead it reads around 0.5mA
of charge current.The charging adjusting algorithm assumes that
the battery is still being charged, and ends up returning the
previous SOC, since it sees that the battery voltage has dropped
from 4.2volts.

We are calling the charging adjusting algorithm erroneously, avoid
this by checking if the batfet is open.

Change-Id: I016a33c358be2e7a2d26202f2e9b168dd54b6d34
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
1 file changed