aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/zynq/patches/111-use-usb2-phy-for-zynq-platform.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/zynq/patches/111-use-usb2-phy-for-zynq-platform.patch')
-rw-r--r--target/linux/zynq/patches/111-use-usb2-phy-for-zynq-platform.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/zynq/patches/111-use-usb2-phy-for-zynq-platform.patch b/target/linux/zynq/patches/111-use-usb2-phy-for-zynq-platform.patch
new file mode 100644
index 0000000000..356dd0f872
--- /dev/null
+++ b/target/linux/zynq/patches/111-use-usb2-phy-for-zynq-platform.patch
@@ -0,0 +1,13 @@
+--- a/drivers/usb/chipidea/ci_hdrc_usb2.c
++++ b/drivers/usb/chipidea/ci_hdrc_usb2.c
+@@ -59,6 +59,10 @@ static int ci_hdrc_usb2_probe(struct pla
+ if (match && match->data) {
+ /* struct copy */
+ *ci_pdata = *(struct ci_hdrc_platform_data *)match->data;
++ ci_pdata->usb_phy = devm_usb_get_phy_by_phandle(dev, "usb-phy",
++ 0);
++ if (IS_ERR(ci_pdata->usb_phy))
++ return PTR_ERR(ci_pdata->usb_phy);
+ }
+
+ priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);