]> asedeno.scripts.mit.edu Git - linux.git/commit
extcon: axp288: Redo charger type detection a couple of seconds after probe()
authorHans de Goede <hdegoede@redhat.com>
Fri, 22 Dec 2017 12:36:15 +0000 (13:36 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 3 Jan 2018 01:12:57 +0000 (10:12 +0900)
commit60ed99961469a3683b52d09bc0771053fb484ae0
treec123edb959f9310f9c017e018b0974a6a8864bca
parentd61b814ab958cdd119eac76e9aa3455b908c51cd
extcon: axp288: Redo charger type detection a couple of seconds after probe()

The axp288 extcon code depends on other drivers to do things like mux the
data lines, enable/disable vbus based on the id-pin, etc.

Sometimes the BIOS has not set these things up correctly resulting in the
initial charger cable type detection giving a wrong result and we end up
not charging or charging at only 0.5A.

This commit starts a second charger-detection cycle a couple of seconds
after the first one finishes, giving the other drivers time to load and
do their thing.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-axp288.c