]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/PME: Replace RMW of Root Status register with direct write
authorLukas Wunner <lukas@wunner.de>
Sun, 26 Oct 2025 16:57:57 +0000 (17:57 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Feb 2026 22:40:33 +0000 (16:40 -0600)
commit699722468a0fca8b1b9ce1ffe2532171ddcaff95
treee34843c5a12f2a425532abe570244d12e1acb3fe
parent9abf79c8d7b40db0e5a34aa8c744ea60ff9a3fcf
PCI/PME: Replace RMW of Root Status register with direct write

As of PCIe r7.0, the Root Status register contains a single writeable bit
(PME Status, type RW1C) and otherwise just read-only bits and RsvdZ bits
(which software must write as zero, PCIe r7.0 sec 7.4).

Thus, when clearing the PME Status bit, there's no need to perform a
read-modify-write of the register.  Instead, the bit can be written
directly.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/39f87c99f6c44be3c0371c79e454e6fde7be0d4d.1761497583.git.lukas@wunner.de
drivers/pci/pci.c