From 4d158980897085a5b0255ab910208d8afc8522dc Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 17 Mar 2024 05:42:52 +0100 Subject: usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget The dm_usb_gadget_handle_interrupts() has no place in board code. Move this into DWC3 driver. The OMAP implementation is special, add new weak dwc3_uboot_interrupt_status() function to decide whether DWC3 interrupt handling should be called, and override it in OMAP DWC3 code, to repair the special OMAP interrupt handling code until OMAP gets switched over to DM UDC proper. Signed-off-by: Marek Vasut Reviewed-by: Caleb Connolly Reviewed-by: Mattijs Korpershoek Tested-by: Mattijs Korpershoek # vim3 Tested-by: Caleb Connolly # qcom sdm845 Link: https://lore.kernel.org/r/20240317044357.547037-1-marek.vasut+renesas@mailbox.org Signed-off-by: Mattijs Korpershoek --- board/st/stih410-b2260/board.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'board/st') diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c index e21cbc270e..82817571ae 100644 --- a/board/st/stih410-b2260/board.c +++ b/board/st/stih410-b2260/board.c @@ -50,12 +50,6 @@ static struct dwc3_device dwc3_device_data = { .index = 0, }; -int dm_usb_gadget_handle_interrupts(struct udevice *dev) -{ - dwc3_uboot_handle_interrupt(dev); - return 0; -} - int board_usb_init(int index, enum usb_init_type init) { int node; -- cgit v1.2.3