diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-10-18 17:47:51 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-11-11 14:20:04 -0600 |
commit | 3491f509666865412ad344cd4dde9f3c5a52326e (patch) | |
tree | cccbf01618745b4fc877dd39a634f29765dedd1b /drivers/pci/pcie/portdrv.h | |
parent | e93d9fcfd7dc643eb5fce43053774d27bea2b263 (diff) | |
download | lwn-3491f509666865412ad344cd4dde9f3c5a52326e.tar.gz lwn-3491f509666865412ad344cd4dde9f3c5a52326e.zip |
PCI: Abstract LBMS seen check into pcie_lbms_seen()
The Target Speed quirk in pcie_failed_link_retrain() uses the presence of
LBMS bit as one of the triggering conditions, effectively monopolizing the
use of that bit. An upcoming change will introduce a PCIe bandwidth
controller which sets up an interrupt to track LBMS. As LBMS will be
cleared by the interrupt handler, the Target Speed quirk will no longer be
able to observe LBMS directly.
As a preparatory step for the change, extract the LBMS seen check from
pcie_failed_link_retrain() into a new function pcie_lmbs_seen().
Link: https://lore.kernel.org/r/20241018144755.7875-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>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/pci/pcie/portdrv.h')
0 files changed, 0 insertions, 0 deletions