diff options
| author | Vladimir Kondratiev <[email protected]> | 2015-10-04 07:23:20 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2015-10-09 08:39:07 +0000 |
| commit | bf2f67343eedc276b8441f91d8daaef4f3ed11d0 (patch) | |
| tree | 98d6c524454f3a82e5486bbd72d994772088d1d0 /drivers/net/wireless/ath/wil6210/interrupt.c | |
| parent | wil6210: Add proper handling for invalid frames on Rx (diff) | |
| download | kernel-bf2f67343eedc276b8441f91d8daaef4f3ed11d0.tar.gz kernel-bf2f67343eedc276b8441f91d8daaef4f3ed11d0.zip | |
wil6210: log firmware crash information
Print firmware and ucode assert codes when firmware crashed.
Signed-off-by: Lior David <[email protected]>
Signed-off-by: Vladimir Kondratiev <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/interrupt.c')
| -rw-r--r-- | drivers/net/wireless/ath/wil6210/interrupt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/interrupt.c b/drivers/net/wireless/ath/wil6210/interrupt.c index a371f036d054..f651994fee5e 100644 --- a/drivers/net/wireless/ath/wil6210/interrupt.c +++ b/drivers/net/wireless/ath/wil6210/interrupt.c @@ -347,7 +347,12 @@ static irqreturn_t wil6210_irq_misc(int irq, void *cookie) wil6210_mask_irq_misc(wil); if (isr & ISR_MISC_FW_ERROR) { - wil_err(wil, "Firmware error detected\n"); + u32 fw_assert_code = wil_r(wil, RGF_FW_ASSERT_CODE); + u32 ucode_assert_code = wil_r(wil, RGF_UCODE_ASSERT_CODE); + + wil_err(wil, + "Firmware error detected, assert codes FW 0x%08x, UCODE 0x%08x\n", + fw_assert_code, ucode_assert_code); clear_bit(wil_status_fwready, wil->status); /* * do not clear @isr here - we do 2-nd part in thread |
