usb: ehci/ohci-exynos: Fix PHY getting sequence
authorVivek Gautam <gautam.vivek@samsung.com>
Tue, 5 Aug 2014 10:39:08 +0000 (16:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:38:21 +0000 (15:38 -0700)
commit2f7f41c7a73c7416e72a07baede021ab62bd5ae7
tree7a4807dda8552ccb64c004efa78a2c1493d73e30
parent69e273c0b0a3c337a521d083374c918dc52c666f
usb: ehci/ohci-exynos: Fix PHY getting sequence

Since we want to keep support for both older usb-phys as well as the
newer generic phys, lets first get the generic PHYs and fallback to
older USB-PHYs only when we fail to get the former.
This should fix the issue with ehci-exynos and ohci-exynos, wherein
in the absence of SAMSUNG_USB2PHY config symbol, we end up getting
the NOP_USB_XCEIV phy when the same is enabled. And thus the PHYs
are not configured properly.

Reported-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Jingoo Han <jg1.han@samsung.com>
Tested-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-exynos.c
drivers/usb/host/ohci-exynos.c