summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/sdio.h
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2016-10-04 23:37:42 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-11-17 09:40:57 +0300
commitdf566a481ee8fb4ce90c1d498bc8fab5c0ec887a (patch)
treea61b5130a9d69b67ee79f42ffc8415d7e64fe8a3 /drivers/net/wireless/marvell/mwifiex/sdio.h
parente7ee74b56f23ba447d3124f2eccc32033cca501d (diff)
downloadlinux-df566a481ee8fb4ce90c1d498bc8fab5c0ec887a.tar.xz
mwifiex: report wakeup for wowlan
Register the WLAN device as a wakeup source since it can wake the system via wake-on-wireless-lan. In an actual wowlan event, notify the PM core that we are the current wakeup source. This allows the PM core to update the wakeup attributes in /sys. This was causing wakeup issues on chromeos as the system was apparently confused about the wakeup source. Signed-off-by: Wei-Ning Huang <wnhuang@google.com> Signed-off-by: Rajat Jain <rajatja@google.com> Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Eric Caruso <ejcaruso@chromium.org> Acked-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/sdio.h')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/sdio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.h b/drivers/net/wireless/marvell/mwifiex/sdio.h
index db837f12c547..07cdd2371eb5 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.h
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.h
@@ -155,6 +155,7 @@
} while (0)
struct mwifiex_plt_wake_cfg {
+ struct device *dev;
int irq_wifi;
bool wake_by_wifi;
};