Commit 39dd96d6 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi

usb: gadget: atmel_usba_udc: 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 4f6bd9fd
...@@ -1685,11 +1685,10 @@ static irqreturn_t usba_udc_irq(int irq, void *devid) ...@@ -1685,11 +1685,10 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
usba_writel(udc, INT_CLR, USBA_END_OF_RESET); usba_writel(udc, INT_CLR, USBA_END_OF_RESET);
reset_all_endpoints(udc); reset_all_endpoints(udc);
if (udc->gadget.speed != USB_SPEED_UNKNOWN if (udc->gadget.speed != USB_SPEED_UNKNOWN && udc->driver) {
&& udc->driver && udc->driver->disconnect) {
udc->gadget.speed = USB_SPEED_UNKNOWN; udc->gadget.speed = USB_SPEED_UNKNOWN;
spin_unlock(&udc->lock); spin_unlock(&udc->lock);
udc->driver->disconnect(&udc->gadget); usb_gadget_udc_reset(&udc->gadget, udc->driver);
spin_lock(&udc->lock); spin_lock(&udc->lock);
} }
......
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