]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rtw88: select deep PS mode when module is inserted
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Wed, 2 Oct 2019 02:31:26 +0000 (10:31 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 20 Mar 2020 21:31:24 +0000 (16:31 -0500)
commitfc2a7f7d4e503111d973038194d09da9014c663e
tree7f5f2e81c5ce625815016ea61e390217da1ad301
parenteda73ba09ed612aa5273cd5ed7ecfe47322c5924
rtw88: select deep PS mode when module is inserted

BugLink: https://bugs.launchpad.net/bugs/1780590
Add a module parameter to select deep PS mode. And the mode
cannot be changed after the module has been inserted and probed.
If anyone wants to change the deep mode, should change the mode
and probe the device again to setup the changed deep mode.

When the device is probed, driver will check the deep PS mode
with different IC's PS mode suppotability. If none of the
PS mode is matched, the deep PS mode is changed to NONE,
means deep PS is disabled.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit d3be4d115be05b1b4323286bc69de9e577fc9a0f)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/ps.c
drivers/net/wireless/realtek/rtw88/rtw8822b.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c