Skip to content

Commit a4e9958

Browse files
Xu Yanggregkh
authored andcommitted
usb: chipidea: otg: not wait vbus drop if use role_switch
The usb role switch will update ID and VBUS states at the same time, and vbus will not drop when execute data role swap in Type-C usecase. So lets not wait vbus drop in usb role switch case too. Fixes: e1b5d2b ("usb: chipidea: core: handle usb role switch in a common way") Cc: stable@vger.kernel.org Acked-by: Peter Chen <peter.chen@kernel.org> Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Link: https://patch.msgid.link/20260402071457.2516021-3-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b94b631 commit a4e9958

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/usb/chipidea

drivers/usb/chipidea/otg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ void ci_handle_id_switch(struct ci_hdrc *ci)
190190

191191
ci_role_stop(ci);
192192

193-
if (role == CI_ROLE_GADGET &&
194-
IS_ERR(ci->platdata->vbus_extcon.edev))
193+
if (role == CI_ROLE_GADGET && !ci->role_switch &&
194+
IS_ERR(ci->platdata->vbus_extcon.edev))
195195
/*
196196
* Wait vbus lower than OTGSC_BSV before connecting
197197
* to host. If connecting status is from an external

0 commit comments

Comments
 (0)