1
linux/drivers/power
Mike Rapoport a35d01a5d2 da9030_battery: Fix race between event handler and monitor
There are cases when charging monitor and the event handler try to
change the charger state simultaneously. For instance, a charger is
connected to the system, there's the detection event and the event
handler tries to enable charging. It is possible that the periodic
charging monitor runs at the same time and it still thinks there's
no external charger. So it tries to disable the charging. As the
result, even if the conditions necessary to charge the battery hold,
there will be no actual charging.

The patch changes the event handler so that instead of enabling/
disabling the charger immediately it would rather make the monitor
run. The monitor code then decides what should be the charger state.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
2009-06-09 01:12:38 +04:00
..
apm_power.c
bq27x00_battery.c trivial: Fix misspelling of "Celsius". 2009-03-30 15:22:03 +02:00
da9030_battery.c da9030_battery: Fix race between event handler and monitor 2009-06-09 01:12:38 +04:00
ds2760_battery.c w1: ds2760_battery: add support for sleep mode feature 2009-06-08 23:25:17 +04:00
Kconfig Add MAX17040 Fuel Gauge driver 2009-06-09 00:53:21 +04:00
Makefile Add MAX17040 Fuel Gauge driver 2009-06-09 00:53:21 +04:00
max17040_battery.c Add MAX17040 Fuel Gauge driver 2009-06-09 00:53:21 +04:00
olpc_battery.c olpc: olpc_battery.c sparse endian annotations 2008-10-16 11:21:30 -07:00
pcf50633-charger.c pcf50633_charger: Remove unused mbc_set_status function 2009-02-02 19:58:45 +03:00
pda_power.c pda_power: Add optional OTG transceiver and voltage regulator support 2009-02-02 20:15:47 +03:00
pmu_battery.c
power_supply_core.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-10-18 20:28:24 +04:00
power_supply_leds.c
power_supply_sysfs.c ACPI: battery: add power_{now,avg} properties to power_class 2009-03-27 22:23:52 -04:00
power_supply.h
tosa_battery.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
wm97xx_battery.c [ARM] 5248/1: wm97xx generic battery driver 2008-10-02 22:48:34 +01:00
wm8350_power.c power_supply: Add battery health reporting for WM8350 2009-01-04 12:17:39 +01:00