mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
usb: dwc3: pci: Add platform data for Synopsys HAPS
commit bb7f3d6d32 upstream.
Add platform data and set usb3_lpm_capable and has_lpm_erratum.
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ab6fc45ff2
commit
a78bd89f08
@@ -108,6 +108,21 @@ static int dwc3_pci_quirks(struct pci_dev *pdev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pdev->vendor == PCI_VENDOR_ID_SYNOPSYS &&
|
||||||
|
(pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3 ||
|
||||||
|
pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3_AXI ||
|
||||||
|
pdev->device == PCI_DEVICE_ID_SYNOPSYS_HAPSUSB31)) {
|
||||||
|
|
||||||
|
struct dwc3_platform_data pdata;
|
||||||
|
|
||||||
|
memset(&pdata, 0, sizeof(pdata));
|
||||||
|
pdata.usb3_lpm_capable = true;
|
||||||
|
pdata.has_lpm_erratum = true;
|
||||||
|
|
||||||
|
return platform_device_add_data(pci_get_drvdata(pdev), &pdata,
|
||||||
|
sizeof(pdata));
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user