summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/core.c
diff options
context:
space:
mode:
authorRichard Zhao <richard.zhao@freescale.com>2012-07-07 22:56:46 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-09 09:59:23 -0700
commita2c3d6902f6f9916b5376c44baa8c1d08bf92a27 (patch)
tree5148bf5983295422ff66b67a1df66a51b627c790 /drivers/usb/chipidea/core.c
parent526c51382d59144a3704970ab111d668e604a10f (diff)
downloadtalos-obmc-linux-a2c3d6902f6f9916b5376c44baa8c1d08bf92a27.tar.gz
talos-obmc-linux-a2c3d6902f6f9916b5376c44baa8c1d08bf92a27.zip
usb: chipidea: permit driver bindings pass phy pointer
Sometimes, the driver bindings may know what phy they use. For example, when using device tree, the usb controller may have a phandler pointing to usb phy. Signed-off-by: Richard Zhao <richard.zhao@freescale.com> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Felipe Balbi <balbi@ti.com> Tested-by: Subodh Nijsure <snijsure@grid-net.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/core.c')
-rw-r--r--drivers/usb/chipidea/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index 39603d7b7916..1083585fad00 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -419,6 +419,10 @@ static int __devinit ci_hdrc_probe(struct platform_device *pdev)
ci->dev = dev;
ci->platdata = dev->platform_data;
+ if (ci->platdata->phy)
+ ci->transceiver = ci->platdata->phy;
+ else
+ ci->global_phy = true;
ret = hw_device_init(ci, base);
if (ret < 0) {
OpenPOWER on IntegriCloud