]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add pcie_ptm_enabled()
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Tue, 27 Jul 2021 03:36:55 +0000 (20:36 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 24 Aug 2021 18:36:13 +0000 (11:36 -0700)
commitdb8d68d8d8e2a175e62ab079ab359c086f0869ca
tree87b6e088042f95030f03c5e464c0d813c980ddcb
parente4ccbbace09de2edc17574e6acff0b36ad1b30c9
PCI: Add pcie_ptm_enabled()

Add a predicate that returns if PCIe PTM (Precision Time Measurement)
is enabled.

It will only return true if it's enabled in all the ports in the path
from the device to the root.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/pci/pcie/ptm.c
include/linux/pci.h