diff options
| author | Maya Erez <[email protected]> | 2016-03-01 17:18:11 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2016-03-07 09:43:20 +0000 |
| commit | 5f0823ef8b76f446ab8b187fabfb4e7560bc33a1 (patch) | |
| tree | 00032fbc83a9b31e7f3c4262f0efe5740e06e9a4 /drivers/net/wireless/ath/wil6210/interrupt.c | |
| parent | wil6210: basic PBSS/PCP support (diff) | |
| download | kernel-5f0823ef8b76f446ab8b187fabfb4e7560bc33a1.tar.gz kernel-5f0823ef8b76f446ab8b187fabfb4e7560bc33a1.zip | |
wil6210: add support for platform specific notification events
Add the ability to notify the platform driver on different
events, such as FW crash, pre reset and FW ready.
Signed-off-by: Maya Erez <[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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/wil6210/interrupt.c b/drivers/net/wireless/ath/wil6210/interrupt.c index 4f2ffa5c6e17..ae902958bf55 100644 --- a/drivers/net/wireless/ath/wil6210/interrupt.c +++ b/drivers/net/wireless/ath/wil6210/interrupt.c @@ -394,9 +394,10 @@ static irqreturn_t wil6210_irq_misc_thread(int irq, void *cookie) wil_fw_core_dump(wil); wil_notify_fw_error(wil); isr &= ~ISR_MISC_FW_ERROR; - if (wil->platform_ops.notify_crash) { + if (wil->platform_ops.notify) { wil_err(wil, "notify platform driver about FW crash"); - wil->platform_ops.notify_crash(wil->platform_handle); + wil->platform_ops.notify(wil->platform_handle, + WIL_PLATFORM_EVT_FW_CRASH); } else { wil_fw_error_recovery(wil); } |
