Merge branch 'pci/aspm'
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 26 Jun 2023 17:59:55 +0000 (12:59 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 26 Jun 2023 17:59:55 +0000 (12:59 -0500)
commit0f32114ea0747ed94be2618cdfd073a90a026550
tree8b843a8c7e1d84d443f5c7c04de674e139b650db
parenta274a4e65f78cc892c207780b9d3a4fc560e88f1
parente7e39756363ad5bd83ddeae1063193d0f13870fd
Merge branch 'pci/aspm'

- Disable ASPM on MFD function removal to avoid use-after-free (Ding Hui)

- Tighten up pci_enable_link_state() and pci_disable_link_state()
  interfaces so they don't enable/disable states the driver didn't specify
  (Ajay Agarwal)

- Avoid link retraining race that can happen if ASPM sets link control
  parameters while the link is in the midst of training for some other
  reason (Ilpo Järvinen)

* pci/aspm:
  PCI/ASPM: Avoid link retraining race
  PCI/ASPM: Factor out pcie_wait_for_retrain()
  PCI/ASPM: Return 0 or -ETIMEDOUT from  pcie_retrain_link()
  PCI/ASPM: Remove unnecessary ASPM_STATE_L1SS check
  PCI/ASPM: Rename L1.2-specific functions from 'l1ss' to 'l12'
  PCI/ASPM: Set ASPM_STATE_L1 when driver enables L1.1 or L1.2
  PCI/ASPM: Set only ASPM_STATE_L1 when driver enables L1
  PCI/ASPM: Disable only ASPM_STATE_L1 when driver disables L1
  PCI/ASPM: Disable ASPM on MFD function removal to avoid use-after-free