usb: gadget: Fix controller index in UMS
authorYe Li <ye.li@nxp.com>
Mon, 29 Jun 2020 02:12:26 +0000 (10:12 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:43 +0000 (14:47 +0200)
commit213fa47dacf07d11f094ff58a5695cd0c425e164
tree8892f3ed9689cc27da44e677cc012b157f1d80f1
parent3a41086f6afabdeed115f33bedd66eb832dacb86
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>
cmd/usb_mass_storage.c
drivers/usb/gadget/f_mass_storage.c
include/usb_mass_storage.h