We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9edb1ac commit 6e0e83eCopy full SHA for 6e0e83e
drivers/usb/host/pci-quirks.c
@@ -958,6 +958,15 @@ static void quirk_usb_disable_ehci(struct pci_dev *pdev)
958
* booting from USB disk or using a usb keyboard
959
*/
960
hcc_params = readl(base + EHCI_HCC_PARAMS);
961
+
962
+ /* LS7A EHCI controller doesn't have extended capabilities, the
963
+ * EECP (EHCI Extended Capabilities Pointer) field of HCCPARAMS
964
+ * register should be 0x0 but it reads as 0xa0. So clear it to
965
+ * avoid error messages on boot.
966
+ */
967
+ if (pdev->vendor == PCI_VENDOR_ID_LOONGSON && pdev->device == 0x7a14)
968
+ hcc_params &= ~(0xffL << 8);
969
970
offset = (hcc_params >> 8) & 0xff;
971
while (offset && --count) {
972
pci_read_config_dword(pdev, offset, &cap);
0 commit comments