]> git.karo-electronics.de Git - karo-tx-linux.git/commit
extcon: intel-cht-wc: Ignore failure to detect charger-type on host mode exit
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 Apr 2017 22:04:52 +0000 (00:04 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Apr 2017 01:55:26 +0000 (10:55 +0900)
commitc42a880c3139cde603c5c83950ca7613aef7eedc
treeeb1f6070b8181ee1aa30915286006b374466840d
parent585cb239f4de6c11349e900dd8b4d8cf0825e802
extcon: intel-cht-wc: Ignore failure to detect charger-type on host mode exit

When we leave host-mode because the id-pin is no longer connected to
ground, the 5v boost converter is normally still on, so we will see
Vbus, but it is not from a charger (normally) so the charger-type
detection will fail.

This commit silences the cht_wc_extcon_get_charger() false-positive
errors when we're leaving host mode.

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