mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
UPSTREAM: usb: dwc3: haps: Workaround matching VID PID
i.MX6QP and i.MX7D platform use a PCIe controller with the same VID and
PID as this USB controller. The system may incorrectly match this driver
to that PCIe controller. To workaround this, specifically use class type
USB with PCI device ID to prevent incorrect driver matching.
Change-Id: Ie0b9d6ebe4eaa2209af0c098b9ae120b576a94da
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 9c7ebc99b3)
This commit is contained in:
@@ -106,6 +106,15 @@ static const struct pci_device_id dwc3_haps_id_table[] = {
|
||||
{
|
||||
PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
|
||||
PCI_DEVICE_ID_SYNOPSYS_HAPSUSB3),
|
||||
/*
|
||||
* i.MX6QP and i.MX7D platform use a PCIe controller with the
|
||||
* same VID and PID as this USB controller. The system may
|
||||
* incorrectly match this driver to that PCIe controller. To
|
||||
* workaround this, specifically use class type USB to prevent
|
||||
* incorrect driver matching.
|
||||
*/
|
||||
.class = (PCI_CLASS_SERIAL_USB << 8),
|
||||
.class_mask = 0xffff00,
|
||||
},
|
||||
{
|
||||
PCI_DEVICE(PCI_VENDOR_ID_SYNOPSYS,
|
||||
|
||||
Reference in New Issue
Block a user