ab8500-bm: Quick re-attach charging behaviour
authorLee Jones <lee.jones@linaro.org>
Thu, 14 Feb 2013 09:24:10 +0000 (09:24 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:35:38 +0000 (12:35 +0800)
commit4dcdf57773fd45b483fc7613b9e51b89a57d655c
treeb5ca9c4474c6e58a09ec3429e813a451f84962cb
parent72a90ddbc3d89a63b769ae1b8538c612cf01e675
ab8500-bm: Quick re-attach charging behaviour

Due to a bug in some AB8500 ASICs charger removal cannot always
be detected if the removal and reinsertion is done to close in time.
This patch detects above described case and handles the situation
so that charging will be kept turned on.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/power/ab8500_charger.c
drivers/power/abx500_chargalg.c
include/linux/mfd/abx500/ux500_chargalg.h