devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] PCI: of: update max-link-speed for gen5 links
@ 2023-05-31  9:21 Ben Dooks
  2023-05-31  9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Dooks @ 2023-05-31  9:21 UTC (permalink / raw)
  To: devicetree, linux-pci, bhelgaas
  Cc: Conor Dooley, Rob Herring, Sudip Mukherjee, Jude Onyenegecha,
	Greentime Hu, Jeegar Lakhani, Ben Dooks, Ben Dooks

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 --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;
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations
  2023-05-31  9:21 [PATCH 1/2] PCI: of: update max-link-speed for gen5 links Ben Dooks
@ 2023-05-31  9:21 ` Ben Dooks
  2023-06-06 19:36   ` Conor Dooley
  2023-06-07 21:17   ` Rob Herring
  0 siblings, 2 replies; 4+ messages in thread
From: Ben Dooks @ 2023-05-31  9:21 UTC (permalink / raw)
  To: devicetree, linux-pci, bhelgaas
  Cc: Conor Dooley, Rob Herring, Sudip Mukherjee, Jude Onyenegecha,
	Greentime Hu, Jeegar Lakhani, Ben Dooks, Krzysztof Kozlowski

Add updated max-link-speed values for newer generation PCIe link
speeds.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: devicetree@vger.kernel.org
---
 Documentation/devicetree/bindings/pci/pci.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt
index 6a8f2874a24d..56391e193fc4 100644
--- a/Documentation/devicetree/bindings/pci/pci.txt
+++ b/Documentation/devicetree/bindings/pci/pci.txt
@@ -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.
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations
  2023-05-31  9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks
@ 2023-06-06 19:36   ` Conor Dooley
  2023-06-07 21:17   ` Rob Herring
  1 sibling, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2023-06-06 19:36 UTC (permalink / raw)
  To: Ben Dooks
  Cc: devicetree, linux-pci, bhelgaas, Conor Dooley, Rob Herring,
	Sudip Mukherjee, Jude Onyenegecha, Greentime Hu, Jeegar Lakhani,
	Krzysztof Kozlowski

[-- Attachment #1: Type: text/plain, Size: 1562 bytes --]

On Wed, May 31, 2023 at 10:21:21AM +0100, Ben Dooks wrote:
> Add updated max-link-speed values for newer generation PCIe link
> speeds.

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Cheers,
Conor.

> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: devicetree@vger.kernel.org
> ---
>  Documentation/devicetree/bindings/pci/pci.txt | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt
> index 6a8f2874a24d..56391e193fc4 100644
> --- a/Documentation/devicetree/bindings/pci/pci.txt
> +++ b/Documentation/devicetree/bindings/pci/pci.txt
> @@ -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.
> -- 
> 2.39.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations
  2023-05-31  9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks
  2023-06-06 19:36   ` Conor Dooley
@ 2023-06-07 21:17   ` Rob Herring
  1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2023-06-07 21:17 UTC (permalink / raw)
  To: Ben Dooks
  Cc: devicetree, linux-pci, bhelgaas, Conor Dooley, Sudip Mukherjee,
	Jude Onyenegecha, Greentime Hu, Jeegar Lakhani,
	Krzysztof Kozlowski

On Wed, May 31, 2023 at 10:21:21AM +0100, Ben Dooks wrote:
> Add updated max-link-speed values for newer generation PCIe link
> speeds.
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: devicetree@vger.kernel.org
> ---
>  Documentation/devicetree/bindings/pci/pci.txt | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt
> index 6a8f2874a24d..56391e193fc4 100644
> --- a/Documentation/devicetree/bindings/pci/pci.txt
> +++ b/Documentation/devicetree/bindings/pci/pci.txt
> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-07 21:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-31  9:21 [PATCH 1/2] PCI: of: update max-link-speed for gen5 links Ben Dooks
2023-05-31  9:21 ` [PATCH 2/2] dt-bindings: updated max-link-speed for newer generations Ben Dooks
2023-06-06 19:36   ` Conor Dooley
2023-06-07 21:17   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).