]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: fix sdio suspend and resume
authorArend van Spriel <arend@broadcom.com>
Tue, 14 Apr 2015 18:10:30 +0000 (20:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 9 May 2015 13:26:55 +0000 (16:26 +0300)
commitf8a8eea9a031e251dded938831c1e9c31c4bff97
treebb7ff21d749babb7c0e5c88e32e895e73fc832e3
parent737a9b5a3dd0ec9ebf3285e5ea8762f82f2a2dd0
brcmfmac: fix sdio suspend and resume

commit ab8fc6aee028 ("brcmfmac: Add wowl support for SDIO devices.")
changed the behaviour by removing the MMC_PM_KEEP_POWER flag for
non-wowl scenario, which needs to be restored. Another necessary
change is to mark the card as being non-removable. With this in place
the suspend resume test passes successfully doing:

 # echo devices > /sys/power/pm_test
 # echo mem > /sys/power/state

Note that power may still be switched off when system is going
in S3 state.

Reported-by: Fu, Zhonghui <<zhonghui.fu@linux.intel.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c