[U-Boot] [PATCH] mvgbe: fix network device indices

Prafulla Wadaskar
2011-10-07T08:26:37Z

> -----Original Message-----
> From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
> On Behalf Of Michael Walle
> Sent: Friday, October 07, 2011 3:53 AM
> To: u-boot at lists.denx.de
> Subject: [U-Boot] [PATCH] mvgbe: fix network device indices
>
> Don't assume that the MAC address of egiga0 rsp. egiga1 is ethaddr rsp.
> eth1addr. If there is only a egiga1 device, u-boot will enumerate it as
> device 0 and therefore the MAC address is set with the environmen
> varibale
> ethaddr.

So if there is only one eth port available, the associated environment variable should be ethaddr, this is understood.
Is there any issue with this?

Then I have anther question in my mind-
Why not we name eth0addr for environment variable associated with egiga0 to maintain consistency with naming and used ports?

Regards..
Prafulla . .