extcon: usbc-tusb320: add usb_role_switch support
authorAlvin Šipraga <alsi@bang-olufsen.dk>
Sat, 18 Mar 2023 15:05:54 +0000 (16:05 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:31:25 +0000 (23:31 +0900)
commitdf101446a402bb1bc164f3445d2f028a1dbec6ac
treebe3cc1b890074d0ccb3dd95dd28608fe95c0e63b
parent18eb81d804c41c98b7e831560ebb933375496529
extcon: usbc-tusb320: add usb_role_switch support

The connector child node of the TUSB320 device might be linked with a
dual-role capable USB controller. Add driver support for detecting a
usb_role_switch and setting its state in the typec interrupt handler.
This follows similar practice in other drivers in the typec subsystem,
which this extcon driver can opt-in to.

Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-usbc-tusb320.c