Skip to contentSkip to conversation

net: ethernet: ti: am65-cpsw: Lower random mac address error print to info

PATCH Applied Nishanth Menon 4 participants 4 messages May 16, 2025 – May 21, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ethernet: ti: am65-cpsw: Lower random mac address error print to info

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.

---

This is esp irritating on platforms such as J721E-IDK-GW which has a bunch of ethernet interfaces, and not all of them have MAC address assigned from Efuse.
Example log (next-20250515):
https://gist.github.com/nmenon/8edbc1773c150a5be69f5b700d907ceb#file-j721e-idk-gw-L1588

 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/ti/am65-cpsw-nuss.c +1 -1
index 1e6d2335293d..30665ffe78cf 100644
@@ -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");
 			}
 		}
 
Signature · 1 line
2.47.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Nishanth Menon

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.

Quoted 8 lines

---

This is esp irritating on platforms such as J721E-IDK-GW which has a bunch of ethernet interfaces, and not all of them have MAC address assigned from Efuse.
Example log (next-20250515):
https://gist.github.com/nmenon/8edbc1773c150a5be69f5b700d907ceb#file-j721e-idk-gw-L1588

Reviewed-by on v1 1/1
#2 lore raw
In reply to Nishanth Menon
Quoted 5 lines · Nishanth Menon

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.

Quoted 9 lines

---

This is esp irritating on platforms such as J721E-IDK-GW which has a bunch of ethernet interfaces, and not all of them have MAC address assigned from Efuse.
Example log (next-20250515):
https://gist.github.com/nmenon/8edbc1773c150a5be69f5b700d907ceb#file-j721e-idk-gw-L1588

#3 lore raw
In reply to Nishanth Menon
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Fri, 16 May 2025 07:26:55 -0500 you wrote:

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.

[...]

Here is the summary with links:
- net: ethernet: ti: am65-cpsw: Lower random mac address error print to info

    https://git.kernel.org/netdev/net/c/50980d8da71a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html