Revert "wifi: mt76: mt7915: disable the second PCIe link for MT7915"

This reverts commit a902bfa6db.
Will be replaced with a proper fix

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2024-10-11 18:46:01 +02:00
parent 6a1199463f
commit 513bd76837
-11
View File
@@ -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;