Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:36176 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754146Ab1EKPjb (ORCPT ); Wed, 11 May 2011 11:39:31 -0400 Received: by wwa36 with SMTP id 36so748938wwa.1 for ; Wed, 11 May 2011 08:39:30 -0700 (PDT) From: Eliad Peller To: Luciano Coelho Cc: Subject: [PATCH 1/7] wl12xx_sdio: set interrupt as wake_up interrupt Date: Wed, 11 May 2011 11:54:22 +0300 Message-Id: <1305104068-32240-2-git-send-email-eliad@wizery.com> (sfid-20110511_173948_932587_E7A0928B) In-Reply-To: <1305104068-32240-1-git-send-email-eliad@wizery.com> References: <1305104068-32240-1-git-send-email-eliad@wizery.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 --- drivers/net/wireless/wl12xx/sdio.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/wl12xx/sdio.c b/drivers/net/wireless/wl12xx/sdio.c index bcd4ad7..1298461 100644 --- a/drivers/net/wireless/wl12xx/sdio.c +++ b/drivers/net/wireless/wl12xx/sdio.c @@ -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); @@ -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); } -- 1.7.0.4