[U-Boot] [PATCH 2/9] mvgbe: Support preserving the existing MAC address

Tabi Timur-B04825
2011-04-30T14:34:16Z

Mike Frysinger wrote:
> so implement this in your board file in misc_init_r or board_eth_init. have
> the code do something like:
> uchar enetaddr[6];
> if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
> /* ... read current MAC out of the driver's registers ... */
> eth_setenv_enetaddr("ethaddr", enetaddr);
> }
>
> then you dont need ugly config hacks in random drivers

This is a feature that could be applied to the e1000 drivers. The current situation is a mess. Some drivers ignore the environment, some of them always use it. This should probably be standardized.

--
Timur Tabi
Linux kernel developer at Freescale