public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] net: ftgmac100: Add support for board specific PHY interface address
@ 2020-08-18  0:08 Thirupathaiah Annapureddy
  2020-08-22 15:13 ` Cédric Le Goater
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thirupathaiah Annapureddy @ 2020-08-18  0:08 UTC (permalink / raw)
  To: u-boot

ftgmac100 driver is using hard-coded PHY interface address of zero.
Each board can have different PHY interface address (phy_addr).
This commit modifies the driver to make use of board specific address
by leveraging CONFIG_PHY_ADDR.

Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>
---
 drivers/net/ftgmac100.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
index 5676a5b3ba..00bda24f1f 100644
--- a/drivers/net/ftgmac100.c
+++ b/drivers/net/ftgmac100.c
@@ -551,6 +551,10 @@ static int ftgmac100_probe(struct udevice *dev)
 	priv->max_speed = pdata->max_speed;
 	priv->phy_addr = 0;
 
+#ifdef CONFIG_PHY_ADDR
+	priv->phy_addr = CONFIG_PHY_ADDR;
+#endif
+
 	ret = clk_enable_bulk(&priv->clks);
 	if (ret)
 		goto out;
-- 
2.25.2

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

* [PATCH] net: ftgmac100: Add support for board specific PHY interface address
  2020-08-18  0:08 [PATCH] net: ftgmac100: Add support for board specific PHY interface address Thirupathaiah Annapureddy
@ 2020-08-22 15:13 ` Cédric Le Goater
  2020-09-29  1:56 ` Thirupathaiah Annapureddy
  2020-10-01 14:09 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Cédric Le Goater @ 2020-08-22 15:13 UTC (permalink / raw)
  To: u-boot

On 8/18/20 2:08 AM, Thirupathaiah Annapureddy wrote:
> ftgmac100 driver is using hard-coded PHY interface address of zero.
> Each board can have different PHY interface address (phy_addr).
> This commit modifies the driver to make use of board specific address
> by leveraging CONFIG_PHY_ADDR.
> 
> Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>

Reviewed-by: C?dric Le Goater <clg@kaod.org>

Thanks,

C.

> ---
>  drivers/net/ftgmac100.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
> index 5676a5b3ba..00bda24f1f 100644
> --- a/drivers/net/ftgmac100.c
> +++ b/drivers/net/ftgmac100.c
> @@ -551,6 +551,10 @@ static int ftgmac100_probe(struct udevice *dev)
>  	priv->max_speed = pdata->max_speed;
>  	priv->phy_addr = 0;
>  
> +#ifdef CONFIG_PHY_ADDR
> +	priv->phy_addr = CONFIG_PHY_ADDR;
> +#endif
> +
>  	ret = clk_enable_bulk(&priv->clks);
>  	if (ret)
>  		goto out;
> 

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

* [PATCH] net: ftgmac100: Add support for board specific PHY interface address
  2020-08-18  0:08 [PATCH] net: ftgmac100: Add support for board specific PHY interface address Thirupathaiah Annapureddy
  2020-08-22 15:13 ` Cédric Le Goater
@ 2020-09-29  1:56 ` Thirupathaiah Annapureddy
  2020-10-01 14:09 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Thirupathaiah Annapureddy @ 2020-09-29  1:56 UTC (permalink / raw)
  To: u-boot

Hi Tom/Joe,

Is this going to be applied to u-boot/next or u-boot-net?

Best Regards,
Thiru

On 8/17/2020 5:08 PM, Thirupathaiah Annapureddy wrote:
> ftgmac100 driver is using hard-coded PHY interface address of zero.
> Each board can have different PHY interface address (phy_addr).
> This commit modifies the driver to make use of board specific address
> by leveraging CONFIG_PHY_ADDR.
> 
> Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>
> ---
>  drivers/net/ftgmac100.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c
> index 5676a5b3ba..00bda24f1f 100644
> --- a/drivers/net/ftgmac100.c
> +++ b/drivers/net/ftgmac100.c
> @@ -551,6 +551,10 @@ static int ftgmac100_probe(struct udevice *dev)
>  	priv->max_speed = pdata->max_speed;
>  	priv->phy_addr = 0;
>  
> +#ifdef CONFIG_PHY_ADDR
> +	priv->phy_addr = CONFIG_PHY_ADDR;
> +#endif
> +
>  	ret = clk_enable_bulk(&priv->clks);
>  	if (ret)
>  		goto out;
> 

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

* [PATCH] net: ftgmac100: Add support for board specific PHY interface address
  2020-08-18  0:08 [PATCH] net: ftgmac100: Add support for board specific PHY interface address Thirupathaiah Annapureddy
  2020-08-22 15:13 ` Cédric Le Goater
  2020-09-29  1:56 ` Thirupathaiah Annapureddy
@ 2020-10-01 14:09 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2020-10-01 14:09 UTC (permalink / raw)
  To: u-boot

On Mon, Aug 17, 2020 at 05:08:26PM -0700, Thirupathaiah Annapureddy wrote:

> ftgmac100 driver is using hard-coded PHY interface address of zero.
> Each board can have different PHY interface address (phy_addr).
> This commit modifies the driver to make use of board specific address
> by leveraging CONFIG_PHY_ADDR.
> 
> Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>
> Reviewed-by: C?dric Le Goater <clg@kaod.org>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201001/cad894af/attachment.sig>

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

end of thread, other threads:[~2020-10-01 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-18  0:08 [PATCH] net: ftgmac100: Add support for board specific PHY interface address Thirupathaiah Annapureddy
2020-08-22 15:13 ` Cédric Le Goater
2020-09-29  1:56 ` Thirupathaiah Annapureddy
2020-10-01 14:09 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox