diff options
author | Ye Li <ye.li@nxp.com> | 2019-01-31 02:20:23 -0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-23 02:03:53 -0700 |
commit | 679364df99ef61fcb5373401b13fd00d143115ad (patch) | |
tree | b5825b164f8e476c635cc766d45ead13038900b9 /cmd | |
parent | eff803e98e48a9d2cb7da605392d70dfc20a6beb (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>
(cherry picked from commit c633b49f9140390323e5e6e16ba57b8531d964a3)
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 c5c6899787..5344b14625 100644 --- a/cmd/usb_mass_storage.c +++ b/cmd/usb_mass_storage.c @@ -168,7 +168,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\n"); rc = CMD_RET_FAILURE; |