Searched hist:"95 dc2be99c214768dea72748a0cca3f237580c25" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/gadget/udc/ |
| H A D | udc-uclass.c | 95dc2be99c214768dea72748a0cca3f237580c25 Thu Jan 24 14:44:53 UTC 2019 Jean-Jacques Hiblot <jjhiblot@ti.com> UPSTREAM: usb: udc-uclass: Fixed problem when no alias is defined in DT
commit 801f1fa442 "dm: usb: udc: Use SEQ_ALIAS to index the USB gadget ports" changed the way the udevice if found. It uses the alias to find a udevice for a given USB port number. In the commit log it was stated that if no alias is provided, the bind order will be used instead. However it doesn't work. Fixing this by adding a call to uclass_get_device() if uclass_get_device_by_seq() fails.
Change-Id: Ib2304c5ecd5d46089c3273ca3ecaa3f9eb5399f8 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Tested-by: Vignesh R <vigneshr@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit e81d9de531fb4c7f14344736bd7568c954e64e14)
|