brcmfmac: Keep OOB wake-interrupt disabled when it shouldn't be enabled
authorDmitry Osipenko <digetx@gmail.com>
Sun, 15 Dec 2019 18:42:24 +0000 (21:42 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 19:09:02 +0000 (21:09 +0200)
commita32de68edab7b73ded850bcf76cdf6858e92a7e5
tree8b1517b9802d21229101759d2fcaa0851face3ad
parent4282dc057d750c6a7dd92953564b15c26b54c22c
brcmfmac: Keep OOB wake-interrupt disabled when it shouldn't be enabled

NVIDIA Tegra SoCs do not like when OOB wake is enabled and WiFi interface
is in DOWN state during suspend. This results in a CPU hang on programming
OOB wake-up state of the GPIO controller during of system's suspend.

The solution is trivial: don't enable wake for the OOB interrupt when it
should be disabled.

This fixes hang on Tegra20 (Acer A500) and Tegra30 (Nexus 7) devices which
are using BCM4329 and BCM4330 WiFi chips respectively.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h