diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2013-12-18 16:41:25 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-19 09:27:41 -0600 |
commit | 13518673f1419f2667985a6fca4543e44143408b (patch) | |
tree | 7bb8d39c2ad82ebf986ca50e5c502d920cd7d599 /drivers/usb/dwc3/dwc3-pci.c | |
parent | 2fc711d763520fa4ec2f15b204efc61585817a39 (diff) | |
download | linux-13518673f1419f2667985a6fca4543e44143408b.tar.bz2 |
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-pci.c')
-rw-r--r-- | drivers/usb/dwc3/dwc3-pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index 665686e7c8cd..f393c183cc69 100644 --- a/drivers/usb/dwc3/dwc3-pci.c +++ b/drivers/usb/dwc3/dwc3-pci.c @@ -52,6 +52,7 @@ static int dwc3_pci_register_phys(struct dwc3_pci *glue) glue->usb2_phy = pdev; pdata.type = USB_PHY_TYPE_USB2; + pdata.gpio_reset = -1; ret = platform_device_add_data(glue->usb2_phy, &pdata, sizeof(pdata)); if (ret) |