]> git.sur5r.net Git - u-boot/commitdiff
fastboot: Dynamic controller index for usb_gadget_handle_interrupts
authorPaul Kocialkowski <contact@paulk.fr>
Sun, 24 May 2015 09:41:04 +0000 (11:41 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 22 Jul 2015 06:57:53 +0000 (08:57 +0200)
Since we're now using a dynamic controller index for fastboot too,
usb_gadget_handle_interrupts should be using it instead of 0 (despite the fact
that it's currently not being used at all in the musb-new implementation).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
common/cmd_fastboot.c

index 86fbddfcc63d7213c6758706e7730137814698da..b9d1c8c02bd9c0c51976271f80c9d98bcd5ef4e1 100644 (file)
@@ -47,7 +47,7 @@ static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
                        break;
                if (ctrlc())
                        break;
-               usb_gadget_handle_interrupts(0);
+               usb_gadget_handle_interrupts(controller_index);
        }
 
        ret = CMD_RET_SUCCESS;