PCI: Add ASPM quirk for Hi1105 PCIe Wi-Fi
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
@@ -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
Bjorn Helgaas
AppliedQuoted 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.
Signed-off-by Shawn Lin <[email protected]>
Applied to pci/for-linus, planning for v6.18.
Quoted 24 lines
---
Changes in v2:
- rebase on linux-next
- useDECLARE_PCI_FIXUP_HEADER(Bjorn)drivers/pci/quirks.c | 1 + 1 file changed, 1 insertion(+)drivers/pci/quirks.c +1
-0@@ -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
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.
Signed-off-by Shawn Lin <[email protected]>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
- useDECLARE_PCI_FIXUP_HEADER(Bjorn)drivers/pci/quirks.c | 1 + 1 file changed, 1 insertion(+)drivers/pci/quirks.c +1
-0@@ -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
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.
Signed-off-by Shawn Lin <[email protected]>
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_l1instead ofquirk_disable_aspm_l0s_l1_cap.
Sigh, yep, sorry about that. Fixed.