netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] net: mdio: Add ASPEED AST2700 MDIO compatible
@ 2024-09-05 11:47 Jacky Chou
  2024-09-05 11:47 ` [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO Jacky Chou
  2024-09-05 11:47 ` [PATCH 2/2] net: mdio: aspeed: Add AST2700 support Jacky Chou
  0 siblings, 2 replies; 6+ messages in thread
From: Jacky Chou @ 2024-09-05 11:47 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, robh, krzk+dt, conor+dt, joel,
	andrew, netdev, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, andrew, hkallweit1, linux
  Cc: jacky_chou

Add a new compatible to dt-binding and mdio driver for ASPEED
AST2700 MDIO.

Jacky Chou (2):
  dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO
  net: mdio: aspeed: Add AST2700 support

 .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml          | 4 +++-
 drivers/net/mdio/mdio-aspeed.c                                | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

-- 
2.25.1


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

* [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO
  2024-09-05 11:47 [PATCH 0/2] net: mdio: Add ASPEED AST2700 MDIO compatible Jacky Chou
@ 2024-09-05 11:47 ` Jacky Chou
  2024-09-05 11:49   ` Krzysztof Kozlowski
  2024-09-05 11:51   ` Krzysztof Kozlowski
  2024-09-05 11:47 ` [PATCH 2/2] net: mdio: aspeed: Add AST2700 support Jacky Chou
  1 sibling, 2 replies; 6+ messages in thread
From: Jacky Chou @ 2024-09-05 11:47 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, robh, krzk+dt, conor+dt, joel,
	andrew, netdev, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, andrew, hkallweit1, linux
  Cc: jacky_chou

Add a new compatible for ASPEED AST2700 MDIO.

Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
---
 .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
index d6ef468495c5..6dadca099875 100644
--- a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
@@ -19,7 +19,9 @@ allOf:
 
 properties:
   compatible:
-    const: aspeed,ast2600-mdio
+    enum:
+      - aspeed,ast2600-mdio
+      - aspeed,ast2700-mdio
 
   reg:
     maxItems: 1
-- 
2.25.1


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

* [PATCH 2/2] net: mdio: aspeed: Add AST2700 support
  2024-09-05 11:47 [PATCH 0/2] net: mdio: Add ASPEED AST2700 MDIO compatible Jacky Chou
  2024-09-05 11:47 ` [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO Jacky Chou
@ 2024-09-05 11:47 ` Jacky Chou
  2024-09-05 11:50   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 6+ messages in thread
From: Jacky Chou @ 2024-09-05 11:47 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, robh, krzk+dt, conor+dt, joel,
	andrew, netdev, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel, andrew, hkallweit1, linux
  Cc: jacky_chou

Add AST2700 compatible for Aspeed MDIO driver.

Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
---
 drivers/net/mdio/mdio-aspeed.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c
index c2170650415c..607e5c56434f 100644
--- a/drivers/net/mdio/mdio-aspeed.c
+++ b/drivers/net/mdio/mdio-aspeed.c
@@ -188,6 +188,7 @@ static void aspeed_mdio_remove(struct platform_device *pdev)
 
 static const struct of_device_id aspeed_mdio_of_match[] = {
 	{ .compatible = "aspeed,ast2600-mdio", },
+	{ .compatible = "aspeed,ast2700-mdio", },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match);
-- 
2.25.1


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

* Re: [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO
  2024-09-05 11:47 ` [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO Jacky Chou
@ 2024-09-05 11:49   ` Krzysztof Kozlowski
  2024-09-05 11:51   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 11:49 UTC (permalink / raw)
  To: Jacky Chou, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, netdev, devicetree, linux-arm-kernel,
	linux-aspeed, linux-kernel, andrew, hkallweit1, linux

On 05/09/2024 13:47, Jacky Chou wrote:
> Add a new compatible for ASPEED AST2700 MDIO.

You have entire commit msg to explain the differences of the hardware,
including whether they are or are not compatible.

> 
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> ---
>  .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml          | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
> index d6ef468495c5..6dadca099875 100644
> --- a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
> +++ b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
> @@ -19,7 +19,9 @@ allOf:
>  
>  properties:
>    compatible:
> -    const: aspeed,ast2600-mdio
> +    enum:
> +      - aspeed,ast2600-mdio
> +      - aspeed,ast2700-mdio

Your driver says something else...

Best regards,
Krzysztof


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

* Re: [PATCH 2/2] net: mdio: aspeed: Add AST2700 support
  2024-09-05 11:47 ` [PATCH 2/2] net: mdio: aspeed: Add AST2700 support Jacky Chou
@ 2024-09-05 11:50   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 11:50 UTC (permalink / raw)
  To: Jacky Chou, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, netdev, devicetree, linux-arm-kernel,
	linux-aspeed, linux-kernel, andrew, hkallweit1, linux

On 05/09/2024 13:47, Jacky Chou wrote:
> Add AST2700 compatible for Aspeed MDIO driver.
> 
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> ---
>  drivers/net/mdio/mdio-aspeed.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c
> index c2170650415c..607e5c56434f 100644
> --- a/drivers/net/mdio/mdio-aspeed.c
> +++ b/drivers/net/mdio/mdio-aspeed.c
> @@ -188,6 +188,7 @@ static void aspeed_mdio_remove(struct platform_device *pdev)
>  
>  static const struct of_device_id aspeed_mdio_of_match[] = {
>  	{ .compatible = "aspeed,ast2600-mdio", },
> +	{ .compatible = "aspeed,ast2700-mdio", },

Why? They are compatible, aren't they? Write useful commit msgs so you
won't get simple questions on each review.

Best regards,
Krzysztof


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

* Re: [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO
  2024-09-05 11:47 ` [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO Jacky Chou
  2024-09-05 11:49   ` Krzysztof Kozlowski
@ 2024-09-05 11:51   ` Krzysztof Kozlowski
  1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 11:51 UTC (permalink / raw)
  To: Jacky Chou, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, netdev, devicetree, linux-arm-kernel,
	linux-aspeed, linux-kernel, andrew, hkallweit1, linux

On 05/09/2024 13:47, Jacky Chou wrote:
> Add a new compatible for ASPEED AST2700 MDIO.
> 
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>

A nit, subject: drop second/last, redundant "binding for". The
"dt-bindings" prefix is already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18

Best regards,
Krzysztof


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

end of thread, other threads:[~2024-09-05 11:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 11:47 [PATCH 0/2] net: mdio: Add ASPEED AST2700 MDIO compatible Jacky Chou
2024-09-05 11:47 ` [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO Jacky Chou
2024-09-05 11:49   ` Krzysztof Kozlowski
2024-09-05 11:51   ` Krzysztof Kozlowski
2024-09-05 11:47 ` [PATCH 2/2] net: mdio: aspeed: Add AST2700 support Jacky Chou
2024-09-05 11:50   ` Krzysztof Kozlowski

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).