diff options
author | Ye Li <ye.li@nxp.com> | 2019-01-31 02:20:23 -0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2019-02-11 00:06:37 -0800 |
commit | d903cd890d6e6c0d94fc436c8d9a1ff3ce7e60dd (patch) | |
tree | 2ae2f92a85d8be3ac1038359cfeea3c93adc23b5 /cmd | |
parent | a726a0c38b67221a8ec41080a71fcbb58230c78c (diff) |
MLK-20887 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.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/usb_mass_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c index cfeecb7068a..ec7906ba00d 100644 --- a/cmd/usb_mass_storage.c +++ b/cmd/usb_mass_storage.c @@ -167,7 +167,7 @@ static int do_usb_mass_storage(cmd_tbl_t *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"); rc = CMD_RET_FAILURE; |