public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
@ 2015-06-29  0:35 Vladimir Zapolskiy
  2015-06-29  8:24 ` Albert ARIBAUD
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vladimir Zapolskiy @ 2015-06-29  0:35 UTC (permalink / raw)
  To: u-boot

The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
MAC to some specified phy by phy id, by chance the single user of
lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
have non-zero CONFIG_PHY_ADDR value, fix it.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
---
 drivers/net/lpc32xx_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c
index 72451a9..6033392 100644
--- a/drivers/net/lpc32xx_eth.c
+++ b/drivers/net/lpc32xx_eth.c
@@ -630,7 +630,7 @@ int lpc32xx_eth_initialize(bd_t *bis)
 	eth_register(dev);
 
 #if defined(CONFIG_PHYLIB)
-	lpc32xx_eth_phylib_init(dev, 0);
+	lpc32xx_eth_phylib_init(dev, CONFIG_PHY_ADDR);
 #elif defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 	miiphy_register(dev->name, mii_reg_read, mii_reg_write);
 #endif
-- 
2.1.4

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

* [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
  2015-06-29  0:35 [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id Vladimir Zapolskiy
@ 2015-06-29  8:24 ` Albert ARIBAUD
  2015-08-12 19:40   ` LEMIEUX, SYLVAIN
  2015-06-29 20:37 ` Joe Hershberger
  2015-08-12 19:33 ` Joe Hershberger
  2 siblings, 1 reply; 6+ messages in thread
From: Albert ARIBAUD @ 2015-06-29  8:24 UTC (permalink / raw)
  To: u-boot

Bonjour Vladimir,

Le Mon, 29 Jun 2015 03:35:12 +0300, Vladimir Zapolskiy <vz@mleia.com> a
?crit :

> The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
> MAC to some specified phy by phy id, by chance the single user of
> lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
> have non-zero CONFIG_PHY_ADDR value, fix it.
> 
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> ---
>  drivers/net/lpc32xx_eth.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c
> index 72451a9..6033392 100644
> --- a/drivers/net/lpc32xx_eth.c
> +++ b/drivers/net/lpc32xx_eth.c
> @@ -630,7 +630,7 @@ int lpc32xx_eth_initialize(bd_t *bis)
>  	eth_register(dev);
>  
>  #if defined(CONFIG_PHYLIB)
> -	lpc32xx_eth_phylib_init(dev, 0);
> +	lpc32xx_eth_phylib_init(dev, CONFIG_PHY_ADDR);
>  #elif defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
>  	miiphy_register(dev->name, mii_reg_read, mii_reg_write);
>  #endif

Acked-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>

Cordialement,
Albert ARIBAUD
3ADEV

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

* [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
  2015-06-29  0:35 [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id Vladimir Zapolskiy
  2015-06-29  8:24 ` Albert ARIBAUD
@ 2015-06-29 20:37 ` Joe Hershberger
  2015-08-05 22:12   ` Vladimir Zapolskiy
  2015-08-12 19:33 ` Joe Hershberger
  2 siblings, 1 reply; 6+ messages in thread
From: Joe Hershberger @ 2015-06-29 20:37 UTC (permalink / raw)
  To: u-boot

Hi Vladimir,

On Sun, Jun 28, 2015 at 7:35 PM, Vladimir Zapolskiy <vz@mleia.com> wrote:
> The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
> MAC to some specified phy by phy id, by chance the single user of
> lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
> have non-zero CONFIG_PHY_ADDR value, fix it.
>
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> ---

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

I'll pull this into u-boot-net/next, Thanks!
-Joe

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

* [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
  2015-06-29 20:37 ` Joe Hershberger
@ 2015-08-05 22:12   ` Vladimir Zapolskiy
  0 siblings, 0 replies; 6+ messages in thread
From: Vladimir Zapolskiy @ 2015-08-05 22:12 UTC (permalink / raw)
  To: u-boot

Hi Joe,

On 29.06.2015 23:37, Joe Hershberger wrote:
> Hi Vladimir,
> 
> On Sun, Jun 28, 2015 at 7:35 PM, Vladimir Zapolskiy <vz@mleia.com> wrote:
>> The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
>> MAC to some specified phy by phy id, by chance the single user of
>> lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
>> have non-zero CONFIG_PHY_ADDR value, fix it.
>>
>> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
>> ---
> 
> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
> 
> I'll pull this into u-boot-net/next, Thanks!
> -Joe
> 

ping.

With best wishes,
Vladimir

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

* [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
  2015-06-29  0:35 [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id Vladimir Zapolskiy
  2015-06-29  8:24 ` Albert ARIBAUD
  2015-06-29 20:37 ` Joe Hershberger
@ 2015-08-12 19:33 ` Joe Hershberger
  2 siblings, 0 replies; 6+ messages in thread
From: Joe Hershberger @ 2015-08-12 19:33 UTC (permalink / raw)
  To: u-boot

Hi Vladimir,

On Sun, Jun 28, 2015 at 7:35 PM, Vladimir Zapolskiy <vz@mleia.com> wrote:
> The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
> MAC to some specified phy by phy id, by chance the single user of
> lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
> have non-zero CONFIG_PHY_ADDR value, fix it.
>
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>

Applied to u-boot-net, thanks!
-Joe

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

* [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id
  2015-06-29  8:24 ` Albert ARIBAUD
@ 2015-08-12 19:40   ` LEMIEUX, SYLVAIN
  0 siblings, 0 replies; 6+ messages in thread
From: LEMIEUX, SYLVAIN @ 2015-08-12 19:40 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert ARIBAUD
> Sent: 29-Jun-15 4:25 AM
>
> Bonjour Vladimir,
>
> Le Mon, 29 Jun 2015 03:35:12 +0300, Vladimir Zapolskiy <vz@mleia.com> a
> ?crit :
>
> > The lpc32xx_eth_phylib_init() function is capable to connect LPC32XX
> > MAC to some specified phy by phy id, by chance the single user of
> > lpc32xx_eth has CONFIG_PHY_ADDR set to 0, however other boards may
> > have non-zero CONFIG_PHY_ADDR value, fix it.
> >
> > Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> > ---
> >  drivers/net/lpc32xx_eth.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c
> > index 72451a9..6033392 100644
> > --- a/drivers/net/lpc32xx_eth.c
> > +++ b/drivers/net/lpc32xx_eth.c
> > @@ -630,7 +630,7 @@ int lpc32xx_eth_initialize(bd_t *bis)
> >     eth_register(dev);
> >
> >  #if defined(CONFIG_PHYLIB)
> > -   lpc32xx_eth_phylib_init(dev, 0);
> > +   lpc32xx_eth_phylib_init(dev, CONFIG_PHY_ADDR);
> >  #elif defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
> >     miiphy_register(dev->name, mii_reg_read, mii_reg_write);
> >  #endif
>
> Acked-by: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
>
> Cordialement,
> Albert ARIBAUD
> 3ADEV

Tested with a PHY setup at an address different than 0;
Tested-by: Sylvain Lemieux <slemieux@tycoint.com>

> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

________________________________

This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.

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

end of thread, other threads:[~2015-08-12 19:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-29  0:35 [U-Boot] [PATCH] net: lpc32xx: connect MAC to phy with CONFIG_PHY_ADDR id Vladimir Zapolskiy
2015-06-29  8:24 ` Albert ARIBAUD
2015-08-12 19:40   ` LEMIEUX, SYLVAIN
2015-06-29 20:37 ` Joe Hershberger
2015-08-05 22:12   ` Vladimir Zapolskiy
2015-08-12 19:33 ` Joe Hershberger

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