OSDN Git Service

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)
commitb50255c83b914defd61a57fbc81d452334b63f4c
treeaebb32f96e613a5f6712e5e6b6cb82d0b7b06893
parent9466987f246758eb7e9071ae58005253f631271e
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: 9e37f045d5e7 ("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