From 513bd7683746bd757b2645bc9de1992df13f45f2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 11 Oct 2024 18:24:58 +0200 Subject: [PATCH] Revert "wifi: mt76: mt7915: disable the second PCIe link for MT7915" This reverts commit a902bfa6db2f387a3860290a426aa8b6763449ff. Will be replaced with a proper fix Signed-off-by: Felix Fietkau --- mt7915/pci.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mt7915/pci.c b/mt7915/pci.c index a3be9fbd..39132894 100644 --- a/mt7915/pci.c +++ b/mt7915/pci.c @@ -16,10 +16,6 @@ static LIST_HEAD(hif_list); static DEFINE_SPINLOCK(hif_lock); static u32 hif_idx; -static int hif2_enable = -1; -module_param(hif2_enable, int, 0644); -MODULE_PARM_DESC(hif2_enable, "Enable second PCIe link support"); - static const struct pci_device_id mt7915_pci_device_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7915) }, { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7906) }, @@ -88,13 +84,6 @@ static int mt7915_pci_hif2_probe(struct pci_dev *pdev) { struct mt7915_hif *hif; - if (!hif2_enable) - return -ENODEV; - - /* Skip the second PCIe link on MT7915 due to SER failure */ - if (hif2_enable < 0 && pdev->device == 0x7916) - return -ENODEV; - hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); if (!hif) return -ENOMEM;