Loading drivers/usb/dwc3/gadget.c +1 −2 Original line number Diff line number Diff line Loading @@ -2414,8 +2414,6 @@ static int dwc3_gadget_vbus_session(struct usb_gadget *_gadget, int is_active) * signaled by the gadget driver. */ ret = dwc3_gadget_run_stop(dwc, 1, false); } else { ret = dwc3_gadget_run_stop(dwc, 0, false); } } Loading @@ -2424,6 +2422,7 @@ static int dwc3_gadget_vbus_session(struct usb_gadget *_gadget, int is_active) * Make sure to let gadget driver know in that case. */ if (!dwc->vbus_active) { ret = dwc3_gadget_run_stop(dwc, 0, false); dev_dbg(dwc->dev, "calling disconnect from %s\n", __func__); dwc3_gadget_disconnect_interrupt(dwc); } Loading Loading
drivers/usb/dwc3/gadget.c +1 −2 Original line number Diff line number Diff line Loading @@ -2414,8 +2414,6 @@ static int dwc3_gadget_vbus_session(struct usb_gadget *_gadget, int is_active) * signaled by the gadget driver. */ ret = dwc3_gadget_run_stop(dwc, 1, false); } else { ret = dwc3_gadget_run_stop(dwc, 0, false); } } Loading @@ -2424,6 +2422,7 @@ static int dwc3_gadget_vbus_session(struct usb_gadget *_gadget, int is_active) * Make sure to let gadget driver know in that case. */ if (!dwc->vbus_active) { ret = dwc3_gadget_run_stop(dwc, 0, false); dev_dbg(dwc->dev, "calling disconnect from %s\n", __func__); dwc3_gadget_disconnect_interrupt(dwc); } Loading