diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2024-08-27 22:09:58 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-29 21:39:35 +0300 |
commit | d3a41dc7e9b04aca289e4bad0b96f1ac9b135f0c (patch) | |
tree | fcfdba044f1560301c808c3d3d580b0bc6cb3a62 /drivers/net/ethernet/vertexcom | |
parent | 0069716da006146809c9b5714bec79285453fbee (diff) | |
download | linux-d3a41dc7e9b04aca289e4bad0b96f1ac9b135f0c.tar.xz |
net: vertexcom: mse102x: Fix random MAC address log
At the time of MAC address assignment the netdev is not registered yet,
so netdev log functions won't work as expected. While we are at this
downgrade the log level to a warning, because a random MAC address is
not a real error.
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240827191000.3244-4-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/vertexcom')
-rw-r--r-- | drivers/net/ethernet/vertexcom/mse102x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/vertexcom/mse102x.c b/drivers/net/ethernet/vertexcom/mse102x.c index 336435fe8241..4ce027f8e376 100644 --- a/drivers/net/ethernet/vertexcom/mse102x.c +++ b/drivers/net/ethernet/vertexcom/mse102x.c @@ -485,8 +485,8 @@ static void mse102x_init_mac(struct mse102x_net *mse, struct device_node *np) if (ret) { eth_hw_addr_random(ndev); - netdev_err(ndev, "Using random MAC address: %pM\n", - ndev->dev_addr); + dev_warn(ndev->dev.parent, "Using random MAC address: %pM\n", + ndev->dev_addr); } } |