]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: core: support optional PHYs
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 3 Mar 2014 11:38:10 +0000 (17:08 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Mar 2014 20:40:05 +0000 (14:40 -0600)
commita8d564c29184a399e41a56947a4fbb0dfc23f0c6
treee22684f6565d224a3205e98c3cedf5ea3d9870a6
parente3a454fd8f1616b56a318b31d651ab944e7f9669
usb: dwc3: core: support optional PHYs

Since PHYs for dwc3 is optional (not all SoCs having PHYs for DWC3
should be programmed), do not return from probe if the USB PHY library
returns -ENODEV as that indicates the platform does not have a
programmable PHY.

While this can be considered as a temporary fix, a long term solution
would be to add 'nop' PHY for platforms that does not have programmable
PHY.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c