]> 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)
commitfea9e97aedc27eeac3078d6d03e2129f21082c8c
tree9d1d87512bffcb00b24494ee80ecc22cc2900937
parentcb4af90f5bb36da3994c5ef82c3e657093b3d19c
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