diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-10-13 05:47:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:09 -0400 |
commit | eb5b28d021a1b96050f7af46e9140eb0051cc6d8 (patch) | |
tree | 41cc26ab8f47c7bf465be648e736702b7007eb1d /drivers/net/wireless/wl12xx/wl1271_boot.c | |
parent | 8a08048a3722a6b52c2b34e070c4e6a32ad19e0d (diff) |
wl1271: Fix IRQ enable handling on FW init failure
Disable IRQ's after FW initialization failure - originally this was not
done in all cases, and it resulted in a kernel warning if firmware
initialization was tried again without reboot.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_boot.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_boot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_boot.c b/drivers/net/wireless/wl12xx/wl1271_boot.c index a27601dc9c0d..b8a37a84842f 100644 --- a/drivers/net/wireless/wl12xx/wl1271_boot.c +++ b/drivers/net/wireless/wl12xx/wl1271_boot.c | |||
@@ -400,9 +400,6 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl) | |||
400 | * ready to receive event from the command mailbox | 400 | * ready to receive event from the command mailbox |
401 | */ | 401 | */ |
402 | 402 | ||
403 | /* enable gpio interrupts */ | ||
404 | wl1271_boot_enable_interrupts(wl); | ||
405 | |||
406 | /* unmask required mbox events */ | 403 | /* unmask required mbox events */ |
407 | wl->event_mask = BSS_LOSE_EVENT_ID | | 404 | wl->event_mask = BSS_LOSE_EVENT_ID | |
408 | SCAN_COMPLETE_EVENT_ID; | 405 | SCAN_COMPLETE_EVENT_ID; |
@@ -540,6 +537,9 @@ int wl1271_boot(struct wl1271 *wl) | |||
540 | if (ret < 0) | 537 | if (ret < 0) |
541 | goto out; | 538 | goto out; |
542 | 539 | ||
540 | /* Enable firmware interrupts now */ | ||
541 | wl1271_boot_enable_interrupts(wl); | ||
542 | |||
543 | /* set the wl1271 default filters */ | 543 | /* set the wl1271 default filters */ |
544 | wl->rx_config = WL1271_DEFAULT_RX_CONFIG; | 544 | wl->rx_config = WL1271_DEFAULT_RX_CONFIG; |
545 | wl->rx_filter = WL1271_DEFAULT_RX_FILTER; | 545 | wl->rx_filter = WL1271_DEFAULT_RX_FILTER; |