usb: dwc2: Return errors from PHY
authorStefan Wahren <stefan.wahren@i2se.com>
Fri, 13 Nov 2015 17:02:11 +0000 (17:02 +0000)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Nov 2015 20:48:49 +0000 (14:48 -0600)
commit6c2dad69163fdb4ea82344dcba360fc00b4adda4
treedda6dfb3ccdb49b5e0cd0c57ce96520b809bbd85
parentd0464bcf12af54bafe02dd23ac5bd75d825f9fdd
usb: dwc2: Return errors from PHY

When searching for PHYs, any error was treated as if the PHY did not
exist or was not specified. Thus the probe function did not
correctly return error conditions such as -EPROBE_DEFER.

Fixed so that only a non-existing PHY is ignored and any other error
is returned.

Acked-by: Eric Anholt <eric@anholt.net>
Reported-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/platform.c