]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: udc: implement DM versions of usb_gadget_initialize()/_release()/_handle_interrupt()
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 29 Nov 2018 09:52:43 +0000 (10:52 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 7 Dec 2018 15:31:45 +0000 (16:31 +0100)
commitff8d75583487eb69bcb6f036088d979c76db3753
tree942df5b32b69a83c7b297b6eb372c1fbbec328c9
parent687ab54560809e01a10652ef82dbac6ae72deb91
usb: udc: implement DM versions of usb_gadget_initialize()/_release()/_handle_interrupt()

When DM_USB_GADGET the platform code for the USB device must be replaced by
calls to a USB device driver.

usb_gadget_initialize() probes the USB device driver.
usb_gadget_release() removes the USB device driver.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
drivers/usb/dwc3/dwc3-generic.c
drivers/usb/gadget/udc/udc-core.c
include/linux/usb/gadget.h