Skip to contentSkip to conversation

PCI: Add ASPM quirk for Hi1105 PCIe Wi-Fi

PATCH Applied Shawn Lin 2 participants 4 messages Nov 12, 2025 – Nov 13, 2025 PCI

lore
Share & tools
lore

Shawn Lin

author
#0 lore raw

PATCH v2 1/1 PCI: Add ASPM quirk for Hi1105 PCIe Wi-Fi

This Wi-Fi advertises the L0s and L1 capabilities but actually it doesn't support them. This's comfirmed by Hisilicon team in actual productization.

---

Changes in v2:
- rebase on linux-next
- use DECLARE_PCI_FIXUP_HEADER(Bjorn)

 drivers/pci/quirks.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/quirks.c +1 -0
index 44e7807..24c2788 100644
@@ -2536,6 +2536,7 @@ static void quirk_disable_aspm_l0s_l1_cap(struct pci_dev *dev)
 	pci_info(dev, "ASPM: L0s L1 removed from Link Capabilities to work around device defect\n");
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_FREESCALE, 0x0451, quirk_disable_aspm_l0s_l1_cap);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HUAWEI, 0x1105, quirk_disable_aspm_l0s_l1_cap);
 
 /*
  * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · Shawn Lin

This Wi-Fi advertises the L0s and L1 capabilities but actually it doesn't support them. This's comfirmed by Hisilicon team in actual productization.

Applied to pci/for-linus, planning for v6.18.

Quoted 24 lines

---

Changes in v2:
- rebase on linux-next
- use DECLARE_PCI_FIXUP_HEADER(Bjorn)

 drivers/pci/quirks.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/quirks.c +1 -0
index 44e7807..24c2788 100644
@@ -2536,6 +2536,7 @@ static void quirk_disable_aspm_l0s_l1_cap(struct pci_dev *dev)
 	pci_info(dev, "ASPM: L0s L1 removed from Link Capabilities to work around device defect\n");
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_FREESCALE, 0x0451, quirk_disable_aspm_l0s_l1_cap);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HUAWEI, 0x1105, quirk_disable_aspm_l0s_l1_cap);
 
 /*
  * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
Signature · 1 line
2.7.4
author
#2 lore raw
Quoted 8 lines · Bjorn Helgaas
Quoted 5 lines · Shawn Lin

This Wi-Fi advertises the L0s and L1 capabilities but actually it doesn't support them. This's comfirmed by Hisilicon team in actual productization.

Applied to pci/for-linus, planning for v6.18.

Thanks Bjorn. By checking the for-linus branch, I found an error.

This patch is based on linux-next, but if it's for v6.18, I think we need to use quirk_disable_aspm_l0s_l1 instead of quirk_disable_aspm_l0s_l1_cap.

Quoted 26 lines
Quoted 25 lines

---

Changes in v2:
- rebase on linux-next
- use DECLARE_PCI_FIXUP_HEADER(Bjorn)

  drivers/pci/quirks.c | 1 +
  1 file changed, 1 insertion(+)
drivers/pci/quirks.c +1 -0
index 44e7807..24c2788 100644
@@ -2536,6 +2536,7 @@ static void quirk_disable_aspm_l0s_l1_cap(struct pci_dev *dev)
  	pci_info(dev, "ASPM: L0s L1 removed from Link Capabilities to work around device defect\n");
  }
  DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_FREESCALE, 0x0451, quirk_disable_aspm_l0s_l1_cap);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HUAWEI, 0x1105, quirk_disable_aspm_l0s_l1_cap);
 
  /*
   * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
Signature · 1 line
2.7.4
#3 lore raw
Quoted 8 lines · Shawn Lin
Quoted 7 lines · Bjorn Helgaas
Quoted 5 lines · Shawn Lin

This Wi-Fi advertises the L0s and L1 capabilities but actually it doesn't support them. This's comfirmed by Hisilicon team in actual productization.

Quoted 7 lines
Quoted 1 line

Applied to pci/for-linus, planning for v6.18.

Thanks Bjorn. By checking the for-linus branch, I found an error.

This patch is based on linux-next, but if it's for v6.18, I think we need to use quirk_disable_aspm_l0s_l1 instead of quirk_disable_aspm_l0s_l1_cap.

Sigh, yep, sorry about that. Fixed.