]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: uclass: Save generated ethernet MAC addresses to the environment
authorMichal Simek <michal.simek@xilinx.com>
Tue, 11 Jan 2022 09:28:09 +0000 (10:28 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 11 Jan 2022 09:33:42 +0000 (10:33 +0100)
commit381e6e5494d422a2adcede3da9f967c22c6ad123
treee0d87fbb2b6f8bb53f67198e5834116b1d2b1b41
parent2a9caba1ceff85c7c07dcb43d48b4c8cf8c79f5e
net: uclass: Save generated ethernet MAC addresses to the environment

When a MAC address is randomly generated we currently only update the
appropriate data structure.  For consistency and to re-align with
historic usage, it should be also saved to the appropriate environment
variable as well.

Cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
[trini: Update Kconfig, handle legacy networking case as well]
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Ramon Fried <rfried.dev@gmail.com>
Link: https://lore.kernel.org/r/1a2518e3cc19c14a41875ef64c5acc1f16edc813.1641893287.git.michal.simek@xilinx.com
net/Kconfig
net/eth-uclass.c
net/eth_legacy.c