]> git.itanic.dy.fi Git - linux-stable/commit
wifi: rtlwifi: rtl8821ae: Access full PMCS reg and use pci_regs.h
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 24 Nov 2023 08:47:23 +0000 (10:47 +0200)
committerKalle Valo <kvalo@kernel.org>
Fri, 1 Dec 2023 12:41:04 +0000 (14:41 +0200)
commit05b311a3f9153226b5603e33831aec34fd38e228
tree0f183b501e7b79b130c7c8ace19744b94db7bcd9
parent7bd350d2ac915e66d9a23c60fd2fdf41c4233980
wifi: rtlwifi: rtl8821ae: Access full PMCS reg and use pci_regs.h

_rtl8821ae_clear_pci_pme_status() accesses the upper byte of the Power
Management Control/Status register (PMCS) with literal 5 offset.

Access the entire PMCS register using defines from pci_regs.h to
improve code readability.

While at it, remove the obvious comment and tweak debug prints
slightly to not sound misleading.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231124084725.12738-9-ilpo.jarvinen@linux.intel.com
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c