Skip to contentSkip to conversation

PCI: of: update max-link-speed for gen5 links

PATCH In review Ben Dooks 3 participants 4 messages May 31, 2023 – Jun 7, 2023

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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
index 2c25f4fa0225..da0cc01e923e 100644
@@ -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
author
#1 lore raw

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
index 6a8f2874a24d..56391e193fc4 100644
@@ -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
Acked-by on v1 2/2
#2 lore raw

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
---
 Documentation/devicetree/bindings/pci/pci.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/pci/pci.txt +3 -2
index 6a8f2874a24d..56391e193fc4 100644
@@ -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
maintainer
#3 lore raw

Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations

In reply to Ben Dooks
Quoted 15 lines · Ben Dooks

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 +0 -0
index 6a8f2874a24d..56391e193fc4 100644

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