]> git.baikalelectronics.ru Git - kernel.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)
commitde665ea66f57c2a4012466897a0c4652ff98a344
treec123edb959f9310f9c017e018b0974a6a8864bca
parenteb0dafd55b047b7e2c9d6e4e678f4c325c15fb26
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