]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: pcie: Fix crashes due to early IRQs
authorHector Martin <marcan@marcan.st>
Mon, 31 Jan 2022 16:07:10 +0000 (01:07 +0900)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Feb 2022 12:27:06 +0000 (14:27 +0200)
commit38e9d77f542b5469405c95bb669991a506084ae6
treeaebb32f96e613a5f6712e5e6b6cb82d0b7b06893
parent3d5104a5810fda176dcba25937b4de4758944af6
brcmfmac: pcie: Fix crashes due to early IRQs

The driver was enabling IRQs before the message processing was
initialized. This could cause IRQs to come in too early and crash the
driver. Instead, move the IRQ enable and hostready to a bus preinit
function, at which point everything is properly initialized.

Fixes: 7cde75a0f6ac ("brcmfmac: Adding PCIe bus layer support.")
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220131160713.245637-7-marcan@marcan.st
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c