summaryrefslogtreecommitdiff
path: root/drivers/usb/renesas_usbhs/common.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2018-12-14 12:36:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-17 16:07:59 +0300
commit8dc7623bf608495b6e6743e805807c7840673573 (patch)
tree0c5c94af2c3e87222fe6ea19ef73ef9f86eaeee4 /drivers/usb/renesas_usbhs/common.c
parentc3788cd9963eb2e77de3c24142fb7c67b61f1a26 (diff)
downloadlinux-8dc7623bf608495b6e6743e805807c7840673573.tar.xz
usb: ehci-omap: Fix deferred probe for phy handling
PHY model is being used on omap5 platforms even if port mode is not OMAP_EHCI_PORT_MODE_PHY. So don't guess if PHY is required or not based on PHY mode. If PHY is provided in device tree, it must be required. So, if devm_usb_get_phy_by_phandle() gives us an error code other than -ENODEV (no PHY) then error out. This fixes USB Ethernet on omap5-uevm if PHY happens to probe after EHCI thus causing a -EPROBE_DEFER. Cc: Johan Hovold <johan@kernel.org> Cc: Ladislav Michl <ladis@linux-mips.org> Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
0 files changed, 0 insertions, 0 deletions