summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2015-02-23 18:40:23 +0530
committerMarek Vasut <marex@denx.de>2015-04-14 05:48:11 +0200
commit2d48aa69bd2e0164a22b253733564701ed3381a1 (patch)
tree82b4ea7b3a45893b5dee50d02e3ee59c5363e84c /common
parenta69e2c225d152cb91d7d279eb8107f26a9938e51 (diff)
downloadtalos-obmc-uboot-2d48aa69bd2e0164a22b253733564701ed3381a1.tar.gz
talos-obmc-uboot-2d48aa69bd2e0164a22b253733564701ed3381a1.zip
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 <kishon@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_dfu.c2
-rw-r--r--common/cmd_fastboot.c2
-rw-r--r--common/cmd_usb_mass_storage.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c
index 161d38bf28..ec90998176 100644
--- a/common/cmd_dfu.c
+++ b/common/cmd_dfu.c
@@ -64,7 +64,7 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (ctrlc())
goto exit;
- usb_gadget_handle_interrupts();
+ usb_gadget_handle_interrupts(controller_index);
}
exit:
g_dnl_unregister();
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index 346ab80454..30bfc9b709 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -31,7 +31,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
break;
if (ctrlc())
break;
- usb_gadget_handle_interrupts();
+ usb_gadget_handle_interrupts(0);
}
g_dnl_unregister();
diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c
index 51c3fffb46..6cfee47a34 100644
--- a/common/cmd_usb_mass_storage.c
+++ b/common/cmd_usb_mass_storage.c
@@ -137,7 +137,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
}
while (1) {
- usb_gadget_handle_interrupts();
+ usb_gadget_handle_interrupts(controller_index);
rc = fsg_main_thread(NULL);
if (rc) {
OpenPOWER on IntegriCloud