diff options
| author | Tom Rini <[email protected]> | 2024-07-11 16:12:39 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-07-11 16:12:39 -0600 |
| commit | 780b99040bc1d5c3658532fd2f22d703a4acab04 (patch) | |
| tree | 56adc64e560a7a24706d2154d9adfd7140262a21 /include/linux | |
| parent | 6fd2aad04ec96116e58631b7f92d8bf518bfd353 (diff) | |
| parent | b091d3872833a4b8d088ee41348a2d4ff48067cc (diff) | |
Merge tag 'u-boot-dfu-20240711' of https://source.denx.de/u-boot/custodians/u-boot-dfu
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
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/gadget.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 36572be89e6..cf2161603d6 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -971,6 +971,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 * @udev: UDC udevice matching the index (if found) |
