]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit94c107a8c0bc16697c689523b50cd1855e72e709
tree8892f3ed9689cc27da44e677cc012b157f1d80f1
parente936bf21f40b3f9c63de9a507d942e31d5e64a09
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