]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: sm5502: Detect OTG when USB_ID is connected to ground
authorNikita Travkin <nikitos.tr@gmail.com>
Tue, 19 Jan 2021 13:33:47 +0000 (18:33 +0500)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 8 Apr 2021 04:10:16 +0000 (13:10 +0900)
commit62919d228f5fc15b2e44345e5a26d37c3b422db4
tree9d1d87512bffcb00b24494ee80ecc22cc2900937
parent30271861e840517c29b778b1edb69a6585c646cc
extcon: sm5502: Detect OTG when USB_ID is connected to ground

In it's curent state this driver ignores OTG adapters with ID pin
connected to ground. This commit adds a check to set extcon into
host mode when such OTG adapter is connected.

Signed-off-by: Nikita Travkin <nikitos.tr@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-sm5502.c