]> git.baikalelectronics.ru Git - uboot.git/commit
usb: udc-uclass: Fixed problem when no alias is defined in DT
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 24 Jan 2019 14:44:53 +0000 (15:44 +0100)
committerMarek Vasut <marex@denx.de>
Sat, 16 Mar 2019 12:29:43 +0000 (13:29 +0100)
commitea615a849a6b188baa9bd4f9d79d41f680a64978
treea134db19bc4283861df53c25b204b876b38f0577
parentf7b0e606307d2e3991c091f113dcd7610f65374a
usb: udc-uclass: Fixed problem when no alias is defined in DT

commit 514033cebd "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.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Vignesh R <vigneshr@ti.com>
drivers/usb/gadget/udc/udc-uclass.c