]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: Fix non-usb3 configurations
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 25 Apr 2022 11:26:45 +0000 (13:26 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 20 May 2022 21:30:36 +0000 (23:30 +0200)
commit868d58f69c7ceda5c886293cf15f4e39493517a2
tree01abe7a3a956ff191d7f4c29de44759398c6f6f2
parent6a6468f479a7e816fb656b3e1d8af30c7de837a4
usb: dwc3: Fix non-usb3 configurations

Missing nodes may also be signaled via -ENODATA. We need to check for
that to prevent failing in non-usb3 setups.

Furthermore, dev.phy must be NULL'ed in case usb3-phy was not found.

Fixes: 142d50fbce7c ("usb: dwc3: Add support for usb3-phy PHY configuration")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
drivers/usb/dwc3/dwc3-generic.c