devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next 0/3] Add Aspeed G7 MDIO support
@ 2024-11-18 10:47 Jacky Chou
  2024-11-18 10:47 ` [net-next 1/3] dt-bindings: net: add support for AST2700 Jacky Chou
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Jacky Chou @ 2024-11-18 10:47 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel
  Cc: jacky_chou

The Aspeed 7th generation SoC features three MDIO controllers.
The design of AST2700 MDIO controller is the same as AST2600.

Jacky Chou (3):
  dt-bindings: net: add support for AST2700
  net: mdio: aspeed: Add support for AST2700
  net: mdio: aspeed: Add dummy read for fire control

 .../devicetree/bindings/net/aspeed,ast2600-mdio.yaml      | 4 +++-
 drivers/net/mdio/mdio-aspeed.c                            | 8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.25.1


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

* [net-next 1/3] dt-bindings: net: add support for AST2700
  2024-11-18 10:47 [net-next 0/3] Add Aspeed G7 MDIO support Jacky Chou
@ 2024-11-18 10:47 ` Jacky Chou
  2024-11-19 18:18   ` Rob Herring
  2024-11-18 10:47 ` [net-next 2/3] net: mdio: aspeed: Add " Jacky Chou
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 14+ messages in thread
From: Jacky Chou @ 2024-11-18 10:47 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel
  Cc: jacky_chou

The AST2700 is the 7th generation SoC from Aspeed.
Add compatible support for AST2700 in yaml.

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] 14+ messages in thread

* [net-next 2/3] net: mdio: aspeed: Add support for AST2700
  2024-11-18 10:47 [net-next 0/3] Add Aspeed G7 MDIO support Jacky Chou
  2024-11-18 10:47 ` [net-next 1/3] dt-bindings: net: add support for AST2700 Jacky Chou
@ 2024-11-18 10:47 ` Jacky Chou
  2024-11-19 18:20   ` Rob Herring
  2024-11-18 10:47 ` [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control Jacky Chou
  2024-11-19  1:50 ` [net-next 0/3] Add Aspeed G7 MDIO support Andrew Lunn
  3 siblings, 1 reply; 14+ messages in thread
From: Jacky Chou @ 2024-11-18 10:47 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel
  Cc: jacky_chou

The Aspeed 7th generation SoC features three Aspeed MDIO.
The design of AST2700 MDIO controller is the same as AST2600.
Therefore, just add AST2700 compatible here.

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 e55be6dc9ae7..4d5a115baf85 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] 14+ messages in thread

* [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control
  2024-11-18 10:47 [net-next 0/3] Add Aspeed G7 MDIO support Jacky Chou
  2024-11-18 10:47 ` [net-next 1/3] dt-bindings: net: add support for AST2700 Jacky Chou
  2024-11-18 10:47 ` [net-next 2/3] net: mdio: aspeed: Add " Jacky Chou
@ 2024-11-18 10:47 ` Jacky Chou
  2024-11-18 23:05   ` Andrew Jeffery
  2024-11-19  1:50 ` [net-next 0/3] Add Aspeed G7 MDIO support Andrew Lunn
  3 siblings, 1 reply; 14+ messages in thread
From: Jacky Chou @ 2024-11-18 10:47 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel
  Cc: jacky_chou

Add a dummy read to ensure triggering mdio controller before starting
polling the status of mdio controller.

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

diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c
index 4d5a115baf85..feae30bc3e78 100644
--- a/drivers/net/mdio/mdio-aspeed.c
+++ b/drivers/net/mdio/mdio-aspeed.c
@@ -62,6 +62,8 @@ static int aspeed_mdio_op(struct mii_bus *bus, u8 st, u8 op, u8 phyad, u8 regad,
 		| FIELD_PREP(ASPEED_MDIO_DATA_MIIRDATA, data);
 
 	iowrite32(ctrl, ctx->base + ASPEED_MDIO_CTRL);
+	/* Add dummy read to ensure triggering mdio controller */
+	(void)ioread32(ctx->base + ASPEED_MDIO_CTRL);
 
 	return readl_poll_timeout(ctx->base + ASPEED_MDIO_CTRL, ctrl,
 				!(ctrl & ASPEED_MDIO_CTRL_FIRE),
-- 
2.25.1


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

* Re: [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control
  2024-11-18 10:47 ` [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control Jacky Chou
@ 2024-11-18 23:05   ` Andrew Jeffery
  2024-11-19  1:52     ` Andrew Lunn
  2024-11-19  5:46     ` Jacky Chou
  0 siblings, 2 replies; 14+ messages in thread
From: Andrew Jeffery @ 2024-11-18 23:05 UTC (permalink / raw)
  To: Jacky Chou, andrew+netdev, davem, edumazet, kuba, pabeni, robh,
	krzk+dt, conor+dt, joel, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel

Hi Jacky,

On Mon, 2024-11-18 at 18:47 +0800, Jacky Chou wrote:
> Add a dummy read to ensure triggering mdio controller before starting
> polling the status of mdio controller.
> 
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> ---
>  drivers/net/mdio/mdio-aspeed.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-
> aspeed.c
> index 4d5a115baf85..feae30bc3e78 100644
> --- a/drivers/net/mdio/mdio-aspeed.c
> +++ b/drivers/net/mdio/mdio-aspeed.c
> @@ -62,6 +62,8 @@ static int aspeed_mdio_op(struct mii_bus *bus, u8
> st, u8 op, u8 phyad, u8 regad,
>                 | FIELD_PREP(ASPEED_MDIO_DATA_MIIRDATA, data);
>  
>         iowrite32(ctrl, ctx->base + ASPEED_MDIO_CTRL);
> +       /* Add dummy read to ensure triggering mdio controller */
> +       (void)ioread32(ctx->base + ASPEED_MDIO_CTRL);

Why do this when the same register is immediately read by
readl_poll_timeout() below?

If there is a reason, I'd like some more explanation in the comment
you've added, discussing the details of the problem it's solving when
taking into account the readl_poll_timeout() call.

>  
>         return readl_poll_timeout(ctx->base + ASPEED_MDIO_CTRL, ctrl,
>                                 !(ctrl & ASPEED_MDIO_CTRL_FIRE),

Cheers,

Andrew

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

* Re: [net-next 0/3] Add Aspeed G7 MDIO support
  2024-11-18 10:47 [net-next 0/3] Add Aspeed G7 MDIO support Jacky Chou
                   ` (2 preceding siblings ...)
  2024-11-18 10:47 ` [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control Jacky Chou
@ 2024-11-19  1:50 ` Andrew Lunn
  2024-11-19  5:35   ` 回覆: " Jacky Chou
  3 siblings, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2024-11-19  1:50 UTC (permalink / raw)
  To: Jacky Chou
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel

On Mon, Nov 18, 2024 at 06:47:32PM +0800, Jacky Chou wrote:
> The Aspeed 7th generation SoC features three MDIO controllers.
> The design of AST2700 MDIO controller is the same as AST2600.

If they are identical, why do you need a new compatible?

	Andrew

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

* Re: [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control
  2024-11-18 23:05   ` Andrew Jeffery
@ 2024-11-19  1:52     ` Andrew Lunn
  2024-11-19  5:51       ` 回覆: " Jacky Chou
  2024-11-19  5:46     ` Jacky Chou
  1 sibling, 1 reply; 14+ messages in thread
From: Andrew Lunn @ 2024-11-19  1:52 UTC (permalink / raw)
  To: Andrew Jeffery
  Cc: Jacky Chou, andrew+netdev, davem, edumazet, kuba, pabeni, robh,
	krzk+dt, conor+dt, joel, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel

On Tue, Nov 19, 2024 at 09:35:39AM +1030, Andrew Jeffery wrote:
> Hi Jacky,
> 
> On Mon, 2024-11-18 at 18:47 +0800, Jacky Chou wrote:
> > Add a dummy read to ensure triggering mdio controller before starting
> > polling the status of mdio controller.
> > 
> > Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> > ---
> >  drivers/net/mdio/mdio-aspeed.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-
> > aspeed.c
> > index 4d5a115baf85..feae30bc3e78 100644
> > --- a/drivers/net/mdio/mdio-aspeed.c
> > +++ b/drivers/net/mdio/mdio-aspeed.c
> > @@ -62,6 +62,8 @@ static int aspeed_mdio_op(struct mii_bus *bus, u8
> > st, u8 op, u8 phyad, u8 regad,
> >                 | FIELD_PREP(ASPEED_MDIO_DATA_MIIRDATA, data);
> >  
> >         iowrite32(ctrl, ctx->base + ASPEED_MDIO_CTRL);
> > +       /* Add dummy read to ensure triggering mdio controller */
> > +       (void)ioread32(ctx->base + ASPEED_MDIO_CTRL);
> 
> Why do this when the same register is immediately read by
> readl_poll_timeout() below?
> 
> If there is a reason, I'd like some more explanation in the comment
> you've added, discussing the details of the problem it's solving when
> taking into account the readl_poll_timeout() call.

Also, is this a fix? Should it have a Fixes: tag? If so, it should not
be part of this series, assuming the older devices have the same
issue.

	Andrew

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

* 回覆: [net-next 0/3] Add Aspeed G7 MDIO support
  2024-11-19  1:50 ` [net-next 0/3] Add Aspeed G7 MDIO support Andrew Lunn
@ 2024-11-19  5:35   ` Jacky Chou
  2024-11-19 13:25     ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Jacky Chou @ 2024-11-19  5:35 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au,
	andrew@codeconstruct.com.au, hkallweit1@gmail.com,
	linux@armlinux.org.uk, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org

Hi Andrew Lunn

Thank you for your reply.

> > The Aspeed 7th generation SoC features three MDIO controllers.
> > The design of AST2700 MDIO controller is the same as AST2600.
> 
> If they are identical, why do you need a new compatible?

We want consistent naming in the DTS of the new SoC, even if Its 
design is the same as the older SoC.

Thanks,
Jacky

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

* 回覆: [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control
  2024-11-18 23:05   ` Andrew Jeffery
  2024-11-19  1:52     ` Andrew Lunn
@ 2024-11-19  5:46     ` Jacky Chou
  1 sibling, 0 replies; 14+ messages in thread
From: Jacky Chou @ 2024-11-19  5:46 UTC (permalink / raw)
  To: Andrew Jeffery, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	joel@jms.id.au, hkallweit1@gmail.com, linux@armlinux.org.uk,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org

Hi Andrew Jeffery,

Thank you for your reply.

> >         iowrite32(ctrl, ctx->base + ASPEED_MDIO_CTRL);
> > +       /* Add dummy read to ensure triggering mdio controller */
> > +       (void)ioread32(ctx->base + ASPEED_MDIO_CTRL);
> 
> Why do this when the same register is immediately read by
> readl_poll_timeout() below?
> 
> If there is a reason, I'd like some more explanation in the comment you've
> added, discussing the details of the problem it's solving when taking into
> account the readl_poll_timeout() call.
> 

Agree.
When the bus is sometimes busy, it may cause the driver is unable to 
write the register to the MDIO controller immediately.
Therefore, add a dummy read to ensure the previous write command 
has arrived to the MDIO controller before polling MDIO controller status.
I will add more details in next version of the commit.

Thanks,
Jacky

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

* 回覆: [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control
  2024-11-19  1:52     ` Andrew Lunn
@ 2024-11-19  5:51       ` Jacky Chou
  0 siblings, 0 replies; 14+ messages in thread
From: Jacky Chou @ 2024-11-19  5:51 UTC (permalink / raw)
  To: Andrew Lunn, Andrew Jeffery
  Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au,
	hkallweit1@gmail.com, linux@armlinux.org.uk,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org

Hi Andrew Lunn,

Thank you for your reply.

> > >         iowrite32(ctrl, ctx->base + ASPEED_MDIO_CTRL);
> > > +       /* Add dummy read to ensure triggering mdio controller */
> > > +       (void)ioread32(ctx->base + ASPEED_MDIO_CTRL);
> >
> > Why do this when the same register is immediately read by
> > readl_poll_timeout() below?
> >
> > If there is a reason, I'd like some more explanation in the comment
> > you've added, discussing the details of the problem it's solving when
> > taking into account the readl_poll_timeout() call.
> 
> Also, is this a fix? Should it have a Fixes: tag? If so, it should not be part of this
> series, assuming the older devices have the same issue.

Agree.
It may be a fix. The patch is also applied in older device.
I will separate from this series and send it to net tree.

Thanks,
Jacky


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

* Re: 回覆: [net-next 0/3] Add Aspeed G7 MDIO support
  2024-11-19  5:35   ` 回覆: " Jacky Chou
@ 2024-11-19 13:25     ` Andrew Lunn
  0 siblings, 0 replies; 14+ messages in thread
From: Andrew Lunn @ 2024-11-19 13:25 UTC (permalink / raw)
  To: Jacky Chou
  Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au,
	andrew@codeconstruct.com.au, hkallweit1@gmail.com,
	linux@armlinux.org.uk, netdev@vger.kernel.org,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org

On Tue, Nov 19, 2024 at 05:35:40AM +0000, Jacky Chou wrote:
> Hi Andrew Lunn
> 
> Thank you for your reply.
> 
> > > The Aspeed 7th generation SoC features three MDIO controllers.
> > > The design of AST2700 MDIO controller is the same as AST2600.
> > 
> > If they are identical, why do you need a new compatible?
> 
> We want consistent naming in the DTS of the new SoC, even if Its 
> design is the same as the older SoC.

You might find the DT Maintainers push back against this. What you
want is effectively a Marketing game, it has little to do with
technology, describing the hardware.

	Andrew

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

* Re: [net-next 1/3] dt-bindings: net: add support for AST2700
  2024-11-18 10:47 ` [net-next 1/3] dt-bindings: net: add support for AST2700 Jacky Chou
@ 2024-11-19 18:18   ` Rob Herring
  2024-11-20  2:38     ` 回覆: " Jacky Chou
  0 siblings, 1 reply; 14+ messages in thread
From: Rob Herring @ 2024-11-19 18:18 UTC (permalink / raw)
  To: Jacky Chou
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, krzk+dt, conor+dt,
	joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel

On Mon, Nov 18, 2024 at 06:47:33PM +0800, Jacky Chou wrote:
> The AST2700 is the 7th generation SoC from Aspeed.
> Add compatible support for AST2700 in yaml.

"Add compatible..." is obvious from the diff. Add something about why 
the diff is how it is. For example, it is not compatible with AST2600 
because...

> 
> 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	[flat|nested] 14+ messages in thread

* Re: [net-next 2/3] net: mdio: aspeed: Add support for AST2700
  2024-11-18 10:47 ` [net-next 2/3] net: mdio: aspeed: Add " Jacky Chou
@ 2024-11-19 18:20   ` Rob Herring
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2024-11-19 18:20 UTC (permalink / raw)
  To: Jacky Chou
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, krzk+dt, conor+dt,
	joel, andrew, hkallweit1, linux, netdev, devicetree,
	linux-arm-kernel, linux-aspeed, linux-kernel

On Mon, Nov 18, 2024 at 06:47:34PM +0800, Jacky Chou wrote:
> The Aspeed 7th generation SoC features three Aspeed MDIO.
> The design of AST2700 MDIO controller is the same as AST2600.
> Therefore, just add AST2700 compatible here.

If they are "the same", you don't need to add the compatible here. You 
still need to add it to the binding, but make ast2600 a fallback 
compatible.

> 
> 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 e55be6dc9ae7..4d5a115baf85 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	[flat|nested] 14+ messages in thread

* 回覆: [net-next 1/3] dt-bindings: net: add support for AST2700
  2024-11-19 18:18   ` Rob Herring
@ 2024-11-20  2:38     ` Jacky Chou
  0 siblings, 0 replies; 14+ messages in thread
From: Jacky Chou @ 2024-11-20  2:38 UTC (permalink / raw)
  To: Rob Herring
  Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, krzk+dt@kernel.org,
	conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au,
	hkallweit1@gmail.com, linux@armlinux.org.uk,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org

Hi Rob,

Thank you for your replay.

> > The AST2700 is the 7th generation SoC from Aspeed.
> > Add compatible support for AST2700 in yaml.
> 
> "Add compatible..." is obvious from the diff. Add something about why the diff
> is how it is. For example, it is not compatible with AST2600 because...
> 

I understand what you mean.
We will continue to use compatible ast2600 in 7th generation.

Thanks,
Jacky


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

end of thread, other threads:[~2024-11-20  2:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 10:47 [net-next 0/3] Add Aspeed G7 MDIO support Jacky Chou
2024-11-18 10:47 ` [net-next 1/3] dt-bindings: net: add support for AST2700 Jacky Chou
2024-11-19 18:18   ` Rob Herring
2024-11-20  2:38     ` 回覆: " Jacky Chou
2024-11-18 10:47 ` [net-next 2/3] net: mdio: aspeed: Add " Jacky Chou
2024-11-19 18:20   ` Rob Herring
2024-11-18 10:47 ` [net-next 3/3] net: mdio: aspeed: Add dummy read for fire control Jacky Chou
2024-11-18 23:05   ` Andrew Jeffery
2024-11-19  1:52     ` Andrew Lunn
2024-11-19  5:51       ` 回覆: " Jacky Chou
2024-11-19  5:46     ` Jacky Chou
2024-11-19  1:50 ` [net-next 0/3] Add Aspeed G7 MDIO support Andrew Lunn
2024-11-19  5:35   ` 回覆: " Jacky Chou
2024-11-19 13:25     ` Andrew Lunn

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