]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: dwc3: drd: extend dwc3_pre_set_role() to extcon and otg usecase
authorXu Yang <xu.yang_2@nxp.com>
Thu, 8 Jan 2026 08:14:31 +0000 (16:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jan 2026 14:58:31 +0000 (15:58 +0100)
commite02264af6b49d21bbc2223b19c2ddfd2ae8260a6
tree5b28dea9625ee6b6a9c1d6208f25533afdc3f6fb
parent0145e7acd29855dfba4a2f387d455b5d9a520f0e
usb: dwc3: drd: extend dwc3_pre_set_role() to extcon and otg usecase

Call dwc3_pre_set_role() to support both extcon and otg usecase, so that
the glue driver can do proper action in case of role changes.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://patch.msgid.link/20260108081433.2119328-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/drd.c