usb: chipidea: Add udc unregister for device removal
The host may assume that the usb device is still up and running after
booting if we do not deregister the udc here. I observed issues when the
linux kernel was using a usb gadget directly where the complete USB Hub
got disconnected through this.

This patch adds a proper USB disconnect for gadget devices.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fe02d7e commit d27cddcc3ad5c37c22acf287a5dbe36a0906359f
@Markus Pargmann Markus Pargmann authored on 17 Sep 2015
Sascha Hauer committed on 23 Sep 2015
Showing 3 changed files
View
drivers/usb/gadget/fsl_udc.c
View
drivers/usb/imx/chipidea-imx.c
View
include/usb/fsl_usb2.h