diff mbox series

[1/2] PCI: of: update max-link-speed for gen5 links

Message ID 20230531092121.291770-1-ben.dooks@codethink.co.uk
State New
Headers show
Series [1/2] PCI: of: update max-link-speed for gen5 links | expand

Commit Message

Ben Dooks May 31, 2023, 9:21 a.m. UTC
From: Ben Dooks <ben.dooks@sifive.com>

Update max-link-speed to be up to 6, for newer systems that could have
up to gen6 pci describe in device-tree.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 drivers/pci/of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/pci/of.c b/drivers/pci/of.c
index 2c25f4fa0225..da0cc01e923e 100644
--- a/drivers/pci/of.c
+++ b/drivers/pci/of.c
@@ -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;