]> git.baikalelectronics.ru Git - uboot.git/commit
omap2: set the ethaddr as well as the usbethaddr env var to ensure static MAC
authorPeter Robinson <pbrobinson@gmail.com>
Thu, 23 Nov 2017 13:14:17 +0000 (13:14 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 2 Dec 2017 23:32:58 +0000 (18:32 -0500)
commite7fbb17c6a52354e97b619c9b921f16cebe1ebb9
tree92bd992dce8feaad45648cc3246b39bb5ab6b752
parent7727f9f310563a0065533e29e4e5ace6561a2814
omap2: set the ethaddr as well as the usbethaddr env var to ensure static MAC

The kernel gets the ethernet MAC from the ethaddr variable, the omap boards for
devices with USB based eth adapters just set the usbethaddr which doesn't appear
to get passed to the kernel. The same Raspberry Pi code sets both ethaddr and
usbethaddr so lets do that so linux (tested 4.13 and 4.14) get a static rather
than a random MAC address, while not regressing users of usbethaddr.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
arch/arm/mach-omap2/utils.c