]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: allows to enable/disable HCI link PS mechanism
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Mon, 18 Nov 2019 09:54:32 +0000 (17:54 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Nov 2019 07:44:51 +0000 (09:44 +0200)
commitfae0f7e9320f0305083a1af5f1977d133e2cf5d0
treed5b1b286cf0b0af3b1c8831efe2e4436876e6e9f
parente8bb538df9672cf77754fd430c4c118531c654ef
rtw88: allows to enable/disable HCI link PS mechanism

Different interfaces have its own link-related power save mechanism.
Such as PCI can enter L1 state based on the traffic on the link, and
sometimes driver needs to enable/disable it to avoid some issues, like
throughput degrade when PCI trying to enter L1 state even if driver is
having heavy traffic.

For now, rtw88 only supports PCIE chips, and they just need to disable
ASPM L1 when driver is not in power save mode, such as IPS and LPS.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/hci.h
drivers/net/wireless/realtek/rtw88/pci.c
drivers/net/wireless/realtek/rtw88/pci.h
drivers/net/wireless/realtek/rtw88/ps.c