[U-Boot] [PATCH v1 0/2] Fix USB port indexes for USB gadget commands
Jean-Jacques Hiblot
jjhiblot at ti.com
Sat Dec 15 16:43:26 UTC 2018
The USB gadget commands take the USB port index as a parameter.
This is not playing well with the current DM support for gadget when USB0
is dedicated to host and USB1 dedicated to gadget.
This problem has been reported by Sam Protsenko <semen.protsenko at linaro.org>
This patch fixes this by using the aliases provided by the DT to get the port
index right.
Tested on:
- dra76 evm
- am572 evm
Jean-Jacques Hiblot (2):
dm: usb: udc: Use SEQ_ALIAS to index the USB gadget ports
ARM: dts: define USB aliases for all omap5 platforms
arch/arm/dts/omap5-u-boot.dtsi | 5 +++++
drivers/usb/gadget/udc/udc-uclass.c | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
--
2.7.4
More information about the U-Boot
mailing list