PCI: of: update max-link-speed for gen5 links
PATCH 1/2 PCI: of: update max-link-speed for gen5 links
From: Ben Dooks <[email protected]>
Update max-link-speed to be up to 6, for newer systems that could have up to gen6 pci describe in device-tree.
--- drivers/pci/of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/of.c +1 -1
@@ -639,7 +639,7 @@ int of_pci_get_max_link_speed(struct device_node *node)u32 max_link_speed;if (of_property_read_u32 (node,"max-link-speed" , &max_link_speed) || - max_link_speed ==0 || max_link_speed >4 ) + max_link_speed ==0 || max_link_speed >6 )return -EINVAL ;return max_link_speed;
Signature · 1 line
2.39.2
PATCH 2/2 dt-bindings: updated max-link-speed for newer generations
Add updated max-link-speed values for newer generation PCIe link speeds.
--- Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pci/pci.txt +3 -2
@@ -22,8 +22,9 @@ driver implementation may support the following properties: If present this property specifies PCI gen for link capability. Host drivers could add this as a strategy to avoid unnecessary operation for unsupported link speed, for instance, trying to do training for - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' - for gen2, and '1' for gen1. Any other values are invalid. + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. + Any other values are invalid. - reset-gpios: If present this property specifies PERST# GPIO. Host drivers can parse the GPIO and apply fundamental reset to endpoints.
Signature · 1 line
2.39.2
Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations
Quoted 2 lines · Ben Dooks
Add updated max-link-speed values for newer generation PCIe link speeds.
Cheers,
Conor.
Quoted 27 lines
Signed-off-by Ben Dooks <[email protected]>Cc Krzysztof Kozlowski <[email protected]>--- Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/pci/pci.txt +3
-2@@ -22,8 +22,9 @@ driver implementation may support the following properties: If present this property specifies PCI gen for link capability. Host drivers could add this as a strategy to avoid unnecessary operation for unsupported link speed, for instance, trying to do training for - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' - for gen2, and '1' for gen1. Any other values are invalid. + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. + Any other values are invalid. - reset-gpios: If present this property specifies PERST# GPIO. Host drivers can parse the GPIO and apply fundamental reset to endpoints.Signature · 1 line
2.39.2
Rob Herring
maintainerRe: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations
In reply to Ben DooksQuoted 15 lines · Ben Dooks
Add updated max-link-speed values for newer generation PCIe link speeds.
Signed-off-by Ben Dooks <[email protected]>Cc Krzysztof Kozlowski <[email protected]>--- Documentation/devicetree/bindings/pci/pci.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/pci/pci.txt +0
-0
Documentation/devicetree/bindings/pci/pci.txt driver implementation may support the following properties: · line 27
Quoted 8 lines
Documentation/devicetree/bindings/pci/pci.txt +3
-2@@ -22,8 +22,9 @@ driver implementation may support the following properties: If present this property specifies PCI gen for link capability. Host drivers could add this as a strategy to avoid unnecessary operation for unsupported link speed, for instance, trying to do training for - unsupported link speed, etc. Must be '4' for gen4, '3' for gen3, '2' - for gen2, and '1' for gen1. Any other values are invalid. + unsupported link speed, etc. Must be '6' for gen6, '5' for gen5, + '4' for gen4, '3' for gen3, '2' for gen2, and '1' for gen1. + Any other values are invalid.
This file is a deadend to be removed.
Please update dtschema with the new values.
Rob