rtlwifi: PCIe capability access fix + improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessorsdrivers/ drivers/ | +19 | 3 replies | |
| 2/7 | wifi: rtlwifi: Convert to use PCIe capability accessorsdrivers/ drivers/ | +11 | 2 replies | |
| 3/7 | rtlwifi: rtl8821ae: Remove unnecessary PME_Status bit setdrivers/ | +1 | 0 replies | |
| 4/7 | rtlwifi: rtl8821ae: Reverse PM capability exists checkdrivers/ | +23 | 2 replies | |
| 5/7 | rtlwifi: rtl8821ae: Use pci_find_capability()drivers/ | +8 | 1 reply | |
| 6/7 | rtlwifi: rtl8821ae: Add pdev into _rtl8821ae_clear_pci_pme_status()drivers/ | +5 | 0 replies | |
| 7/7 | rtlwifi: rtl8821ae: Access full PMCS reg and use pci_regs.hdrivers/ | +7 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] rtlwifi: PCIe capability access fix + improvements
The rtlwifi driver has code fragments that are using old interface or custom code to access PCIe capabilities.
The use of old interfaces causes an issue with LNKCTL register that requires locking during RMW operations. Standard PCIe capability accessors provide the necessary locking so they should be always used. The first patch of the series addresses that problem.
The rest of the patches cleanup PCIe capability related code.
Additional note: This series provides only a stop-gap solution to the RMW concurrency issue, the overall plan is to migrate all ASPM related handling into the ASPM service driver in order for it to accurately track ASPM state [1].
[1] https://lore.kernel.org/linux-pci/[email protected]/
Ilpo Järvinen (7):
wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors
wifi: rtlwifi: Convert to use PCIe capability accessors
rtlwifi: rtl8821ae: Remove unnecessary PME_Status bit set
rtlwifi: rtl8821ae: Reverse PM capability exists check
rtlwifi: rtl8821ae: Use pci_find_capability()
rtlwifi: rtl8821ae: Add pdev into _rtl8821ae_clear_pci_pme_status()
rtlwifi: rtl8821ae: Access full PMCS reg and use pci_regs.h
drivers/net/wireless/realtek/rtlwifi/pci.c | 69 ++++++++--------- drivers/net/wireless/realtek/rtlwifi/pci.h | 3 - .../wireless/realtek/rtlwifi/rtl8821ae/hw.c | 76 +++++-------------- 3 files changed, 48 insertions(+), 100 deletions(-)
Signature · 1 line
2.30.2