]> git.itanic.dy.fi Git - linux-stable/commit
PCI: pciehp: Use RMW accessors for changing LNKCTL
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 17 Jul 2023 12:04:55 +0000 (15:04 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Aug 2023 16:13:34 +0000 (11:13 -0500)
commit5f75f96c61039151c193775d776fde42477eace1
tree431e094ac1310580f2cebf7100ab276ed111d44b
parentfb0171a4c01b4825e36a5584eaa84291179c64ce
PCI: pciehp: Use RMW accessors for changing LNKCTL

As hotplug is not the only driver touching LNKCTL, use the RMW capability
accessor which handles concurrent changes correctly.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Fixes: 7f822999e12a ("PCI: pciehp: Add Disable/enable link functions")
Link: https://lore.kernel.org/r/20230717120503.15276-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
drivers/pci/hotplug/pciehp_hpc.c