]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mwifiex: report wakeup for wowlan
authorRajat Jain <rajatja@google.com>
Tue, 4 Oct 2016 20:37:42 +0000 (13:37 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Nov 2016 06:40:57 +0000 (08:40 +0200)
commitdf566a481ee8fb4ce90c1d498bc8fab5c0ec887a
treea61b5130a9d69b67ee79f42ffc8415d7e64fe8a3
parente7ee74b56f23ba447d3124f2eccc32033cca501d
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>
drivers/net/wireless/marvell/mwifiex/sdio.c
drivers/net/wireless/marvell/mwifiex/sdio.h