u-boot-dfu-20240711

Usb gadget:
- A welcome cleanup: epautoconf workaround is dropped to use
  .match_ep() instead
- Introduce handle_interrupts() op for USB_GADGET_GENERIC, which
  allows a per-driver interrupt handling

Fastboot:
- Fix mssing include when building with TCP only
This commit is contained in:
Tom Rini
2024-07-11 16:12:39 -06:00
20 changed files with 223 additions and 406 deletions

View File

@@ -970,6 +970,14 @@ extern void usb_ep_autoconfig_reset(struct usb_gadget *);
extern int dm_usb_gadget_handle_interrupts(struct udevice *);
/**
* struct usb_gadget_generic_ops - The functions that a gadget driver must implement.
* @handle_interrupts: Handle UDC interrupts.
*/
struct usb_gadget_generic_ops {
int (*handle_interrupts)(struct udevice *udevice);
};
/**
* udc_device_get_by_index() - Get UDC udevice by index
* @index: UDC device index