brcmfmac: pcie: Fix crashes due to early IRQs
authorHector Martin <marcan@marcan.st>
Tue, 21 Dec 2021 08:44:00 +0000 (17:44 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 18 Jan 2022 11:22:06 +0000 (20:22 +0900)
commita60be30b66e87b4d70066fb54c9443edfdd3c52e
tree6f63d19d4ed231c4b485ca8bad9787e36b1bb636
parentb794a092d0be3f853bab8485a500d5730d2be493
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>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c