]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: don't net_ratelimit() CONSOLE messages on firmware crash
authorRafał Miłecki <rafal@milecki.pl>
Sun, 21 Jul 2019 19:52:17 +0000 (21:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:54:07 +0000 (14:54 +0300)
commitfe130a2751d25e027bf5105057b856ac080569a6
tree9b619f208bcf1f5aeced42da2926da8a61d4a113
parentd567848211e7ba6584cc9367f8093b00791f9c89
brcmfmac: don't net_ratelimit() CONSOLE messages on firmware crash

Firmware crash is a pretty rare event and can't happen too frequently as
it has to be followed by a hardware reinitialization and config reload.
It should be safe to don't use net_ratelimit() when it happens.

For reporting & debugging purposes it's important to provide a complete
log as the last lines are actually the most important. This change
modifies brcmfmac to print all messages in an unlimited way in that
specific case. With this change there should be finally a backtrace of
firmware finally visible after a crash.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c