Skip to contentSkip to conversation

net: mdio: Add ASPEED AST2700 MDIO compatible

PATCH In review Jacky Chou 2 participants 6 messages Sep 5, 2024

Subsystems (5)
lore
Share & tools
lore

Jacky Chou

author
#0 lore raw

cover net: mdio: Add ASPEED AST2700 MDIO compatible

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(-)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/2 dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO

Add a new compatible for ASPEED AST2700 MDIO.

---
 .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml +3 -1
index d6ef468495c5..6dadca099875 100644
@@ -19,7 +19,9 @@ allOf:
 
 properties:
   compatible:
-    const: aspeed,ast2600-mdio
+    enum:
+      - aspeed,ast2600-mdio
+      - aspeed,ast2700-mdio
 
   reg:
     maxItems: 1
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO

Quoted 1 line · Jacky Chou

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.

Quoted 11 lines
---
 .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml +0 -0
index d6ef468495c5..6dadca099875 100644

Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml allOf: · line 24

Quoted 7 lines
Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml +3 -1
@@ -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

#3 lore raw

Re: [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO

In reply to Jacky Chou
Quoted 3 lines · Jacky Chou

Add a new compatible for ASPEED AST2700 MDIO.

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

author
#4 lore raw

PATCH 2/2 net: mdio: aspeed: Add AST2700 support

In reply to Jacky Chou

Add AST2700 compatible for Aspeed MDIO driver.

---
 drivers/net/mdio/mdio-aspeed.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/mdio/mdio-aspeed.c +1 -0
index c2170650415c..607e5c56434f 100644
@@ -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);
Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH 2/2] net: mdio: aspeed: Add AST2700 support

Quoted 12 lines · Jacky Chou

Add AST2700 compatible for Aspeed MDIO driver.

---
 drivers/net/mdio/mdio-aspeed.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/mdio/mdio-aspeed.c +0 -0
index c2170650415c..607e5c56434f 100644

drivers/net/mdio/mdio-aspeed.c static void aspeed_mdio_remove(struct platform_device *pdev) · line 191

Quoted 4 lines
drivers/net/mdio/mdio-aspeed.c +1 -0
@@ -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