8c7e6a8b933a3f247e70ec4fd17714a038fac660
[openwrt/staging/xback.git] /
1 From 324f1feb960c79a07df3acde89a119a5aa80cb10 Mon Sep 17 00:00:00 2001
2 From: Kalle Valo <kvalo@codeaurora.org>
3 Date: Thu, 25 Apr 2019 20:08:31 +0300
4 Subject: [PATCH] Revert "brcmfmac: send mailbox interrupt twice for specific
5 hardware device"
6
7 This reverts commit 99d94ef367af67f630b38c93ff46c5819b7d06b6. I accidentally
8 applied this broken (failed to compile) patch due to a bug in my patchwork
9 script.
10
11 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
12 ---
13 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 6 +-----
14 1 file changed, 1 insertion(+), 5 deletions(-)
15
16 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
17 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
18 @@ -698,11 +698,7 @@ brcmf_pcie_send_mb_data(struct brcmf_pci
19
20 brcmf_pcie_write_tcm32(devinfo, addr, htod_mb_data);
21 pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1);
22 -
23 - /* Send mailbox interrupt twice as a hardware workaround */
24 - core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2);
25 - if (core->rev <= 13)
26 - pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1);
27 + pci_write_config_dword(devinfo->pdev, BRCMF_PCIE_REG_SBMBX, 1);
28
29 return 0;
30 }