mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user