]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: Handle case where setup_phy is not needed
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 21 Oct 2020 12:17:31 +0000 (14:17 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 22 Nov 2020 12:18:20 +0000 (13:18 +0100)
commite7f9e1fca9b0563e5e83c5d2c5164bdda5948227
tree93f56f0c8bd61e57c24412312f8814e47514f465
parent5739ef2bcb6dc04414d9a06063d4c85e793884ba
usb: dwc3: Handle case where setup_phy is not needed

If CONFIG_PHY is not enabled then the dwc3_setup_phy()
returns ENOTSUPP which can be still valid and intentional
so modify error check to handle this -ENOTSUPP.

The same error handling exists in drivers/usb/host/xhci-dwc3.c already
added by commit d648a50c0a27 ("dwc3: move phy operation to core.c").

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/dwc3/dwc3-generic.c