usb: gadget: amd5536udc: use udc-core's reset notifier
Replace usb_gadget_driver's disconnect with udc-core's reset notifier at bus reset handler. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
7918d8c56a
commit
107d13c76f
@ -2871,7 +2871,7 @@ __acquires(dev->lock)
|
||||
dev->driver->resume(&dev->gadget);
|
||||
dev->sys_suspended = 0;
|
||||
}
|
||||
dev->driver->disconnect(&dev->gadget);
|
||||
usb_gadget_udc_reset(&dev->gadget, dev->driver);
|
||||
spin_lock(&dev->lock);
|
||||
|
||||
/* disable ep0 to empty req queue */
|
||||
|
Loading…
Reference in New Issue
Block a user