mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
c52054e568
This improves FullMAC firmware compatibility, adds logging in case of
firmware crash and *may* fix "Invalid packet id" errors.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 8888cb725d
)
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 99d94ef367af67f630b38c93ff46c5819b7d06b6 Mon Sep 17 00:00:00 2001
|
|
From: Wright Feng <Wright.Feng@cypress.com>
|
|
Date: Thu, 25 Apr 2019 07:05:46 +0000
|
|
Subject: [PATCH] brcmfmac: send mailbox interrupt twice for specific hardware
|
|
device
|
|
|
|
For PCIE wireless device with core revision less than 14, device may miss
|
|
PCIE to System Backplane Interrupt via PCIEtoSBMailbox. So add sending
|
|
mail box interrupt twice as a hardware workaround.
|
|
|
|
Signed-off-by: Wright Feng <wright.feng@cypress.com>
|
|
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
|
|
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|
|
---
|
|
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
|
|
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
|
|
@@ -698,7 +698,11 @@ brcmf_pcie_send_mb_data(struct brcmf_pci
|
|
|
|
brcmf_pcie_write_tcm32(devinfo, addr, htod_mb_data);
|
|
pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1);
|
|
- pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1);
|
|
+
|
|
+ /* Send mailbox interrupt twice as a hardware workaround */
|
|
+ core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2);
|
|
+ if (core->rev <= 13)
|
|
+ pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1);
|
|
|
|
return 0;
|
|
}
|