[U-Boot] [PATCH] net: eth-uclass: No warning for using ROM MAC

Trent Piepho tpiepho at impinj.com
Thu Jun 6 16:19:44 UTC 2019


Using a ROM burned in MAC address is the normal way devices that have
this ability will store their MAC.  It's normal operation and a warning
message isn't appropriate.  Make it a debug message, as it is in
non-DM_ETH code paths that do this.

Signed-off-by: Trent Piepho <tpiepho at impinj.com>
---
 net/eth-uclass.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index 031d558625..dae4987355 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -533,8 +533,7 @@ static int eth_post_probe(struct udevice *dev)
 		memcpy(pdata->enetaddr, env_enetaddr, ARP_HLEN);
 	} else if (is_valid_ethaddr(pdata->enetaddr)) {
 		eth_env_set_enetaddr_by_index("eth", dev->seq, pdata->enetaddr);
-		printf("\nWarning: %s using MAC address from ROM\n",
-		       dev->name);
+		debug("%s using MAC address from ROM\n", dev->name);
 	} else if (is_zero_ethaddr(pdata->enetaddr) ||
 		   !is_valid_ethaddr(pdata->enetaddr)) {
 #ifdef CONFIG_NET_RANDOM_ETHADDR
-- 
2.14.5



More information about the U-Boot mailing list