* [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info
@ 2025-05-16 12:26 Nishanth Menon
2025-05-19 16:02 ` Simon Horman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nishanth Menon @ 2025-05-16 12:26 UTC (permalink / raw)
To: Andrew Lunn, Jakub Kicinski, Eric Dumazet, David S. Miller
Cc: Siddharth Vadapalli, Roger Quadros, linux-kernel, netdev,
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.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
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(-)
diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
index 1e6d2335293d..30665ffe78cf 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
@@ -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");
}
}
--
2.47.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info
2025-05-16 12:26 [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info Nishanth Menon
@ 2025-05-19 16:02 ` Simon Horman
2025-05-20 12:14 ` Roger Quadros
2025-05-21 1:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2025-05-19 16:02 UTC (permalink / raw)
To: Nishanth Menon
Cc: Andrew Lunn, Jakub Kicinski, Eric Dumazet, David S. Miller,
Siddharth Vadapalli, Roger Quadros, linux-kernel, netdev
On Fri, May 16, 2025 at 07:26:55AM -0500, Nishanth Menon 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.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>
> 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: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info
2025-05-16 12:26 [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info Nishanth Menon
2025-05-19 16:02 ` Simon Horman
@ 2025-05-20 12:14 ` Roger Quadros
2025-05-21 1:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Roger Quadros @ 2025-05-20 12:14 UTC (permalink / raw)
To: Nishanth Menon, Andrew Lunn, Jakub Kicinski, Eric Dumazet,
David S. Miller
Cc: Siddharth Vadapalli, linux-kernel, netdev
On 16/05/2025 15:26, Nishanth Menon 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.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>
> 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: Roger Quadros <rogerq@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info
2025-05-16 12:26 [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info Nishanth Menon
2025-05-19 16:02 ` Simon Horman
2025-05-20 12:14 ` Roger Quadros
@ 2025-05-21 1:30 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-05-21 1:30 UTC (permalink / raw)
To: Nishanth Menon
Cc: andrew+netdev, kuba, edumazet, davem, s-vadapalli, rogerq,
linux-kernel, netdev
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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.
>
> Signed-off-by: Nishanth Menon <nm@ti.com>
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-21 1:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-16 12:26 [PATCH] net: ethernet: ti: am65-cpsw: Lower random mac address error print to info Nishanth Menon
2025-05-19 16:02 ` Simon Horman
2025-05-20 12:14 ` Roger Quadros
2025-05-21 1:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).