OSDN Git Service

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)
commit014408cd624e9fd2820f4a593b710325ee05fec9
tree87b6e088042f95030f03c5e464c0d813c980ddcb
parent1d71eb53e45187f58089d32b51e27784c791d90e
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