android_kernel_google_msm/drivers/power
choongryeol.lee 1819bd4e44 power: pm8921-bms: fix soc rising from 99% to 100% during discharging
We observed that SoC suddenly increase from 98% or 99% to 100%
right after charger removal. This issue caused by charging adjusting
algorithm which adjust SoC to sync 100% with end of charging.
During charging adjustment, the adjusted SoC could be smaller than
original SoC. So when we remove charger, charging adjusting algorithm
stop adjusting SoC and then bms report original SoC which is larger
than before.

Previously, bms driver considered most of this case by using previous
SoC when SoC increase during discharging. But if SoC is 100%, previous
patch doesn't work.
So this patch add SoC 100% case by checking if charger is enabled.

Change-Id: I70945d391c9d821eaf875f1bcd1e8787077b98da
2013-03-15 17:13:26 -07:00
..
ab8500_btemp.c
ab8500_charger.c
ab8500_fg.c
abx500_chargalg.c
apm_power.c
battery_temp_ctrl.c Revert "msm: power: Revert LGE power patches" 2013-03-15 17:13:25 -07:00
bq27x00_battery.c
bq27520_fuelgauger.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
bq27541_fuelgauger.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
bq51051b_charger.c Revert "msm: power: Revert LGE power patches" 2013-03-15 17:13:25 -07:00
charger-manager.c
collie_battery.c
da9030_battery.c
da9052-battery.c
ds2760_battery.c
ds2780_battery.c
ds2781_battery.c
ds2782_battery.c
gpio-charger.c
intel_mid_battery.c
isl9519q.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
isp1704_charger.c
jz4740-battery.c
Kconfig Revert "msm: power: Revert LGE power patches" 2013-03-15 17:13:25 -07:00
lp8727_charger.c
ltc4088-charger.c Revert "msm: power: update power drivers to msm-3.4 tip" 2013-03-15 17:13:24 -07:00
Makefile Revert "msm: power: Revert LGE power patches" 2013-03-15 17:13:25 -07:00
max8903_charger.c
max8925_power.c
max8997_charger.c
max8998_charger.c
max17040_battery.c
max17042_battery.c
msm_battery.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
msm_charger.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
olpc_battery.c
pcf50633-charger.c
pda_power.c
pm8xxx-ccadc.c Revert "msm: power: update power drivers to msm-3.4 tip" 2013-03-15 17:13:24 -07:00
pm8058_usb_fix.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
pm8921-bms.c power: pm8921-bms: fix soc rising from 99% to 100% during discharging 2013-03-15 17:13:26 -07:00
pm8921-charger.c power: pm8921-bms: fix soc rising from 99% to 100% during discharging 2013-03-15 17:13:26 -07:00
pmic8058-charger.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
pmu_battery.c
power_supply.h
power_supply_core.c
power_supply_leds.c
power_supply_sysfs.c Revert "msm: power: Revert LGE power patches" 2013-03-15 17:13:25 -07:00
qci_battery.c
qci_battery.h
s3c_adc_battery.c
sbs-battery.c
smb137b.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
smb347-charger.c
smb349.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
test_power.c
tosa_battery.c
twl4030_charger.c
wm97xx_battery.c
wm831x_backup.c
wm831x_power.c
wm8350_power.c
z2_battery.c