Commit 107d13c7 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi

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: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 7918d8c5
...@@ -2871,7 +2871,7 @@ __acquires(dev->lock) ...@@ -2871,7 +2871,7 @@ __acquires(dev->lock)
dev->driver->resume(&dev->gadget); dev->driver->resume(&dev->gadget);
dev->sys_suspended = 0; dev->sys_suspended = 0;
} }
dev->driver->disconnect(&dev->gadget); usb_gadget_udc_reset(&dev->gadget, dev->driver);
spin_lock(&dev->lock); spin_lock(&dev->lock);
/* disable ep0 to empty req queue */ /* disable ep0 to empty req queue */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment