extcon-intel-cht-wc: Don't reset USB data connection at probe
authorYauhen Kharuzhy <jekhor@gmail.com>
Mon, 16 Sep 2019 21:15:36 +0000 (00:15 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 30 Sep 2019 21:46:30 +0000 (06:46 +0900)
commite81b88932985c9134d410f4eaaaa9b81a3b4bd0c
tree468cfdc58756e570680f62aee069aab2c339f279
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
extcon-intel-cht-wc: Don't reset USB data connection at probe

Intel Cherry Trail Whiskey Cove extcon driver connect USB data lines to
PMIC at driver probing for further charger detection. This causes reset of
USB data sessions and removing all devices from bus. If system was
booted from Live CD or USB dongle, this makes system unusable.

Check if USB ID pin is floating and re-route data lines in this case
only, don't touch otherwise.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
[cw00.choi: Clean-up the minor coding style]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-cht-wc.c