]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ethernet: ti: am65-cpsw: Lower random mac address error print to info
authorNishanth Menon <nm@ti.com>
Fri, 16 May 2025 12:26:55 +0000 (07:26 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 01:12:06 +0000 (18:12 -0700)
Using random mac address is not an error since the driver continues to
function, it should be informative that the system has not assigned
a MAC address. This is inline with other drivers such as ax88796c,
dm9051 etc. Drop the error level to info level.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://patch.msgid.link/20250516122655.442808-1-nm@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c

index 1e6d2335293df6fa4b0ffbd15e4a8aec91b8176e..30665ffe78cf91c677f931636539fe4585fd858f 100644 (file)
@@ -2685,7 +2685,7 @@ static int am65_cpsw_nuss_init_slave_ports(struct am65_cpsw_common *common)
                                                        port->slave.mac_addr);
                        if (!is_valid_ether_addr(port->slave.mac_addr)) {
                                eth_random_addr(port->slave.mac_addr);
-                               dev_err(dev, "Use random MAC address\n");
+                               dev_info(dev, "Use random MAC address\n");
                        }
                }