]> 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)
commit686c29771c5890e3baa872a6517885f078ba2f8c
tree87b6e088042f95030f03c5e464c0d813c980ddcb
parent5b05c32326c741645c232a2d75b13d8e24ecc5c9
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