From 2d48aa69bd2e0164a22b253733564701ed3381a1 Mon Sep 17 00:00:00 2001 From: Kishon Vijay Abraham I Date: Mon, 23 Feb 2015 18:40:23 +0530 Subject: usb: modify usb_gadget_handle_interrupts to take controller index Since we support multiple dwc3 controllers to be existent at the same time, in order to handle the interrupts of a particular dwc3 controller usb_gadget_handle_interrutps should take controller index as an argument. Hence the API of usb_gadget_handle_interrupts is modified to take controller index as an argument and made the corresponding changes to all the usb_gadget_handle_interrupts calls. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Lukasz Majewski --- board/ti/am43xx/board.c | 6 +++--- board/ti/dra7xx/evm.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'board') diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 6c4fe48a380..ddf4c5fc13d 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -732,13 +732,13 @@ int board_usb_cleanup(int index, enum usb_init_type init) return 0; } -int usb_gadget_handle_interrupts(void) +int usb_gadget_handle_interrupts(int index) { u32 status; - status = dwc3_omap_uboot_interrupt_status(0); + status = dwc3_omap_uboot_interrupt_status(index); if (status) - dwc3_uboot_handle_interrupt(0); + dwc3_uboot_handle_interrupt(index); return 0; } diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 284775ca9f3..3089fa23342 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -220,13 +220,13 @@ int board_usb_cleanup(int index, enum usb_init_type init) return 0; } -int usb_gadget_handle_interrupts(void) +int usb_gadget_handle_interrupts(int index) { u32 status; - status = dwc3_omap_uboot_interrupt_status(0); + status = dwc3_omap_uboot_interrupt_status(index); if (status) - dwc3_uboot_handle_interrupt(0); + dwc3_uboot_handle_interrupt(index); return 0; } -- cgit v1.2.3