aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-exynos.c
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2013-12-18 09:41:25 -0500
committerFelipe Balbi <balbi@ti.com>2013-12-19 10:27:41 -0500
commit13518673f1419f2667985a6fca4543e44143408b (patch)
tree7bb8d39c2ad82ebf986ca50e5c502d920cd7d599 /drivers/usb/dwc3/dwc3-exynos.c
parent2fc711d763520fa4ec2f15b204efc61585817a39 (diff)
usb: dwc3: fix the glue drivers using the nop phy
The reset_gpio member of the usb_phy_gen_xceiv_platform_data structure needs the have negative value or phy-generic's probe will fail unless DT is used. 0 is a valid gpio number. This fixes an issue where phy-generic fails to probe with message: "usb_phy_gen_xceiv.0: Error requesting RESET GPIO 0". Cc: <stable@vger.kernel.org> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-exynos.c')
-rw-r--r--drivers/usb/dwc3/dwc3-exynos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index 8b20c70d91e7..28c8ad79f5e6 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -50,6 +50,7 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos)
50 50
51 exynos->usb2_phy = pdev; 51 exynos->usb2_phy = pdev;
52 pdata.type = USB_PHY_TYPE_USB2; 52 pdata.type = USB_PHY_TYPE_USB2;
53 pdata.gpio_reset = -1;
53 54
54 ret = platform_device_add_data(exynos->usb2_phy, &pdata, sizeof(pdata)); 55 ret = platform_device_add_data(exynos->usb2_phy, &pdata, sizeof(pdata));
55 if (ret) 56 if (ret)