]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
extcon: intel-cht-wc: Disable external 5v boost converter on probe
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 Apr 2017 22:04:51 +0000 (00:04 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 6 Apr 2017 01:55:25 +0000 (10:55 +0900)
commit585cb239f4de6c11349e900dd8b4d8cf0825e802
treeb940e281be3f89c6e1b5e8f36cdc57bdc3779337
parentc9d0f1d121cf038afc787ceb03d60798a1db389b
extcon: intel-cht-wc: Disable external 5v boost converter on probe

Disable the 5v boost converter on probe in case it was left on by
the BIOS, this fixes 2 problems:

1) This gets seen by the external battery charger as a valid Vbus
   supply and it then tries to feed Vsys from this creating a
   feedback loop which causes aprox. 300 mA extra battery drain
   (and unless we drive the external-charger-disable pin high it
   also tries to charge the battery causing even more feedback).
2) This gets seen by the pwrsrc block as a SDP USB Vbus supply

Since the external battery charger has its own 5v boost converter
which does not have these issues, we simply turn the separate
external 5v boost converter off and leave it off entirely.

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