]> git.itanic.dy.fi Git - linux-stable/commit
PCI/DPC: Use defined fields with DPC_CTL register
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 18 Oct 2023 11:32:52 +0000 (14:32 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 24 Oct 2023 15:54:04 +0000 (10:54 -0500)
commitf00e8dbdedfb0dc2b5712d2170e7fcbe4eb93603
treeed22c7f05e5fe0974a4c5dad5a20378ff0cf9981
parent9a9eec4765737b9b2a8d6ae03de6480a5f12dd5c
PCI/DPC: Use defined fields with DPC_CTL register

Instead of using a literal to clear bits, add PCI_EXP_DPC_CTL_EN_MASK
and use the usual pattern to modify a bitfield.

While at it, rearrange RMW code more logically together.

Link: https://lore.kernel.org/r/20231018113254.17616-6-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/dpc.c