brcmfmac: add USB autosuspend feature support
authorWright Feng <wright.feng@cypress.com>
Wed, 25 Mar 2020 08:20:28 +0000 (03:20 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Mar 2020 09:44:18 +0000 (11:44 +0200)
commit7f1d42304d933c310592c91df70b661965a36121
tree81d8d214c29fea7445a0a560d5980f4479d07153
parent2bc50d8828ad7cc52ecd99f50074aa25f957af41
brcmfmac: add USB autosuspend feature support

We add enable dynamic suspend (autosuspend) support in host driver, and
it can let platform cut down idle power consumption.
To support autosuspend feature in host driver, kernel need to be built
with CONFIG_USB_SUSPEND and autosuspend need to be turn on.
And we also replace wowl feature with adding "needs_remote_wakeup", so
that host still can be waken by wireless device.

Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1585124429-97371-6-git-send-email-chi-hsien.lin@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c