diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2015-09-17 17:16:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-23 10:31:33 +0200 |
commit | d27cddcc3ad5c37c22acf287a5dbe36a0906359f (patch) | |
tree | 405009138b243b5c309bfd5f44c4fce28248cc48 /include/usb | |
parent | fe02d7e6c8d9b9e5d4c6b1e3302cf59274380996 (diff) | |
download | barebox-d27cddcc3ad5c37c22acf287a5dbe36a0906359f.tar.gz barebox-d27cddcc3ad5c37c22acf287a5dbe36a0906359f.tar.xz |
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>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/fsl_usb2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/fsl_usb2.h b/include/usb/fsl_usb2.h index dec3933d82..881a5d4fdf 100644 --- a/include/usb/fsl_usb2.h +++ b/include/usb/fsl_usb2.h @@ -24,5 +24,6 @@ struct fsl_usb2_platform_data { }; int ci_udc_register(struct device_d *dev, void __iomem *regs); +void ci_udc_unregister(void); #endif /* __USB_FSL_USB2_H */ |