]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ci_udc: Add function to remove usb device
authorYe Li <ye.li@nxp.com>
Mon, 29 Jun 2020 02:12:59 +0000 (10:12 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commit1468a1cc72afa210c35a4d0ed533de29110de648
tree26c987450664ce86a785e1a0143c47777a63f984
parent213fa47dacf07d11f094ff58a5695cd0c425e164
usb: ci_udc: Add function to remove usb device

When unregister gadget driver in ci_udc, the usb device is not
removed or stop. This causes next "usb start" fails to work.

Add a new interface "usb_remove_ehci_gadget" in usb-uclass to
remove the usb device for DM driver. Using "usb_lowlevel_stop" for
non-DM driver.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/usb/gadget/ci_udc.c
drivers/usb/host/usb-uclass.c
include/usb.h