Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fba45cea authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi
Browse files

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: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 69aa1f9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1917,7 +1917,7 @@ static int reset_queues(struct qe_udc *udc)


	/* report disconnect; the driver is already quiesced */
	/* report disconnect; the driver is already quiesced */
	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);


	return 0;
	return 0;