Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/devicetree: Add PCIe max-link-speed property

Some of the host drivers have the requirement of knowing whether the EP
would never train at some link speed at all. For instance, on some boards,
the link won't train at 5 GT/s but the host driver still sacrifice some
cycles to wait for the result of training at 5 GT/s as the host could
actually support 5 GT/s. So we could parse this new property and make the
host drivers be aware of these cases.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rob Herring <robh@kernel.org>

authored by

Shawn Lin and committed by
Bjorn Helgaas
2fa39159 1001354c

+6
+6
Documentation/devicetree/bindings/pci/pci.txt
··· 18 18 host bridges in the system, otherwise potentially conflicting domain numbers 19 19 may be assigned to root buses behind different host bridges. The domain 20 20 number for each host bridge in the system must be unique. 21 + - max-link-speed: 22 + If present this property specifies PCI gen for link capability. Host 23 + drivers could add this as a strategy to avoid unnecessary operation for 24 + unsupported link speed, for instance, trying to do training for 25 + unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' 26 + for gen2, and '1' for gen1. Any other values are invalid.