]> asedeno.scripts.mit.edu Git - linux.git/commit
extcon: max77693: Avoid forcing UART path on drive probe
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 8 Nov 2018 13:45:46 +0000 (14:45 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 12 Nov 2018 00:17:13 +0000 (09:17 +0900)
commit6865f2ef9d6576508498fe6127d252b22a70ab39
tree4d23730e89bc3e83fab6c69712f99276efe12aaf
parentd9204acb37569579fc49af1689c0ae32bdd4710f
extcon: max77693: Avoid forcing UART path on drive probe

Driver unconditionally forces UART path during probe, probably to ensure
that one can get kernel serial log as soon as possible.

This approach causes some issues, especially when board is booted with
non-UART cable connected to micro-USB port. For example, when USB cable is
connected, UART TX/RX lines are unconditionally short-circuited to USB
D+/D- lines. This is in turn recognized by a series of serial BREAK
signals and some random characters when USB host tries to perform
enumeration procedure.

To solve the above issue and keep UART console operational as early as
possible, set UART path only when USB ID reports UART capable cable.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-max77693.c