aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorYe Li2020-06-29 10:12:26 +0800
committerMarek Vasut2020-09-01 14:47:43 +0200
commit213fa47dacf07d11f094ff58a5695cd0c425e164 (patch)
tree8892f3ed9689cc27da44e677cc012b157f1d80f1 /cmd
parent3a41086f6afabdeed115f33bedd66eb832dacb86 (diff)
usb: gadget: Fix controller index in UMS
The usb mass storage (f_mass_storage.c) uses fixed usb index 0, this causes problem while CDNS3 USB controller index is 1. Modify the API of fsg to pass the controller index. Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/usb_mass_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c
index d565635c6c4..cf2f55994e0 100644
--- a/cmd/usb_mass_storage.c
+++ b/cmd/usb_mass_storage.c
@@ -170,7 +170,7 @@ static int do_usb_mass_storage(struct cmd_tbl *cmdtp, int flag,
goto cleanup_ums_init;
}
- rc = fsg_init(ums, ums_count);
+ rc = fsg_init(ums, ums_count, controller_index);
if (rc) {
pr_err("fsg_init failed\n");
rc = CMD_RET_FAILURE;