]> git.baikalelectronics.ru Git - uboot.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)
commit13cef38041b68d0ec5a19d2b10b42ad71e234808
tree93f56f0c8bd61e57c24412312f8814e47514f465
parentcdaf95b2db56d044db21db86615af9b7bfd9c1c4
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 d4c8bcc0818a ("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