diff options
| -rw-r--r-- | drivers/usb/dwc2/gadget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index bc3b3fda5000..c4066cd77e47 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c | |||
| @@ -3573,6 +3573,9 @@ irq_retry: | |||
| 3573 | /* Report disconnection if it is not already done. */ | 3573 | /* Report disconnection if it is not already done. */ |
| 3574 | dwc2_hsotg_disconnect(hsotg); | 3574 | dwc2_hsotg_disconnect(hsotg); |
| 3575 | 3575 | ||
| 3576 | /* Reset device address to zero */ | ||
| 3577 | __bic32(hsotg->regs + DCFG, DCFG_DEVADDR_MASK); | ||
| 3578 | |||
| 3576 | if (usb_status & GOTGCTL_BSESVLD && connected) | 3579 | if (usb_status & GOTGCTL_BSESVLD && connected) |
| 3577 | dwc2_hsotg_core_init_disconnected(hsotg, true); | 3580 | dwc2_hsotg_core_init_disconnected(hsotg, true); |
| 3578 | } | 3581 | } |
