]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:45:11 +0000 (14:45 +0200)
[ Upstream commit 50980d8da71a0c2e045e85bba93c0099ab73a209 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c

index cac67babe455934b63d65ee27bf9863d6a0f0e1e..1141107407165656d86ad14368afa2d8a0451633 100644 (file)
@@ -2775,7 +2775,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");
                        }
                }