]> git.itanic.dy.fi Git - linux-stable/commit
PCI: Make link retraining use RMW accessors for changing LNKCTL
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 17 Jul 2023 12:04:54 +0000 (15:04 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Aug 2023 16:13:22 +0000 (11:13 -0500)
commitfb0171a4c01b4825e36a5584eaa84291179c64ce
treef0cd836069ef1ff7c32f9678f265c7294a1f372d
parent5e70d0acf0825f439079736080350371f8d6699a
PCI: Make link retraining use RMW accessors for changing LNKCTL

Don't assume that the device is fully under the control of PCI core.  Use
RMW capability accessors in link retraining which do proper locking to
avoid losing concurrent updates to the register values.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Fixes: 4ec73791a64b ("PCI: Work around Pericom PCIe-to-PCI bridge Retrain Link erratum")
Fixes: 7d715a6c1ae5 ("PCI: add PCI Express ASPM support")
Link: https://lore.kernel.org/r/20230717120503.15276-3-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/pci.c