PCI: Add Precision Time Measurement (PTM) support
authorJonathan Yong <jonathan.yong@intel.com>
Sat, 11 Jun 2016 19:13:38 +0000 (14:13 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 15 Aug 2016 18:44:08 +0000 (13:44 -0500)
commit9bb04a0c4e261187be904d05c2bcd1da0eebc20c
tree725a72656a45640205c5d05885dc9c3fd41f01e0
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
PCI: Add Precision Time Measurement (PTM) support

Add Precision Time Measurement (PTM) support (see PCIe r3.1, sec 6.22).

Enable PTM on PTM Root devices and switch ports.  This does not enable PTM
on endpoints.

There currently are no PTM-capable devices on the market, but it is
expected to be supported by the Intel Apollo Lake platform.

[bhelgaas: complete rework]
Signed-off-by: Jonathan Yong <jonathan.yong@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.h
drivers/pci/pcie/Kconfig
drivers/pci/pcie/Makefile
drivers/pci/pcie/ptm.c [new file with mode: 0644]
drivers/pci/probe.c
include/linux/pci.h
include/uapi/linux/pci_regs.h