diff options
author | Mike Rapoport <mike@compulab.co.il> | 2009-06-09 01:09:45 +0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2009-06-09 01:12:38 +0400 |
commit | a35d01a5d2ac533edab94a8e3b6749ab213c91c5 (patch) | |
tree | f29c751f52713f826ec9ed00c48f5339a0cd2d9b /.mailmap | |
parent | c6f4a42de60b981dd210de01cd3e575835e3158e (diff) | |
download | blackbird-op-linux-a35d01a5d2ac533edab94a8e3b6749ab213c91c5.tar.gz blackbird-op-linux-a35d01a5d2ac533edab94a8e3b6749ab213c91c5.zip |
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>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions