mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 11:44:01 +08:00
usb: gadget: fsl_qe_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: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
69aa1f9f5e
commit
fba45ceac4
@ -1917,7 +1917,7 @@ static int reset_queues(struct qe_udc *udc)
|
||||
|
||||
/* report disconnect; the driver is already quiesced */
|
||||
spin_unlock(&udc->lock);
|
||||
udc->driver->disconnect(&udc->gadget);
|
||||
usb_gadget_udc_reset(&udc->gadget, udc->driver);
|
||||
spin_lock(&udc->lock);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user