net: mdio: Add ASPEED AST2700 MDIO compatible
Subsystems (5)
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
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
@@ -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
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
Signed-off-by Jacky Chou <[email protected]>--- .../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
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
Re: [PATCH 1/2] dt-bindings: net: aspeed: Add binding for ASPEED AST2700 MDIO
In reply to Jacky ChouQuoted 3 lines · Jacky Chou
Add a new compatible for ASPEED AST2700 MDIO.
Signed-off-by Jacky Chou <[email protected]>
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
PATCH 2/2 net: mdio: aspeed: Add AST2700 support
In reply to Jacky ChouAdd 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
@@ -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
Re: [PATCH 2/2] net: mdio: aspeed: Add AST2700 support
Quoted 12 lines · Jacky Chou
Add AST2700 compatible for Aspeed MDIO driver.
Signed-off-by Jacky Chou <[email protected]>--- drivers/net/mdio/mdio-aspeed.c | 1 + 1 file changed, 1 insertion(+)drivers/net/mdio/mdio-aspeed.c +0
-0
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