]> git.karo-electronics.de Git - linux-beck.git/commit
u8500-charger: Delay for USB enumeration
authorPaer-Olof Haakansson <par-olof.hakansson@stericsson.com>
Wed, 22 Feb 2012 18:07:51 +0000 (19:07 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Jan 2013 14:39:22 +0000 (14:39 +0000)
commit34c11a709e928090cf34ecd706f7d3170f4e5026
tree63418834b4e102c8ebe4cafb8b878f2b357410e2
parent97034a1e042d4316a83a3f68d61edf6c42e3f265
u8500-charger: Delay for USB enumeration

If charging is started before USB enumeration of an Accessory
Charger Adapter has finished, the AB8500 will generate a
VBUS_ERROR. This in turn results in timeouts and delays the
enumeration with around 15 seconds. This patch delays the
charging and then ramps currents slowly to avoid VBUS errors.
The delay allows the enumeration to have finished before
charging is turned on.

Signed-off-by: Martin Sjoblom <martin.w.sjoblom@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
drivers/mfd/ab8500-core.c
drivers/power/ab8500_charger.c