Skip to content

Commit

Permalink
wl12xx_sdio: set interrupt as wake_up interrupt
Browse files Browse the repository at this point in the history
set the sdio interrupt as wake_up interrupt, so we will be able
to wake up the suspended system (Wake-On-Wireless)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed May 13, 2011
1 parent fe44870 commit 2c0f246
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/wl12xx/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ static int __devinit wl1271_probe(struct sdio_func *func,
goto out_free;
}

enable_irq_wake(wl->irq);

disable_irq(wl->irq);

ret = wl1271_init_ieee80211(wl);
Expand Down Expand Up @@ -303,6 +305,7 @@ static void __devexit wl1271_remove(struct sdio_func *func)
pm_runtime_get_noresume(&func->dev);

wl1271_unregister_hw(wl);
disable_irq_wake(wl->irq);
free_irq(wl->irq, wl);
wl1271_free_hw(wl);
}
Expand Down

0 comments on commit 2c0f246

Please sign in to comment.