]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: do not print error log if addr is 0
authorWei Fang <wei.fang@nxp.com>
Mon, 22 Dec 2025 02:26:28 +0000 (10:26 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Dec 2025 10:30:41 +0000 (11:30 +0100)
commit5939b6dbcda8b0f5f03a8e5179c13dc0195eb6cd
tree04ebfa885cde4e3219b3f7bde4d37d06249ae445
parent99537d5c476cada9cf75aef9fa75579a31faadb9
net: enetc: do not print error log if addr is 0

A value of 0 for addr indicates that the IEB_LBCR register does not
need to be configured, as its default value is 0. However, the driver
will print an error log if addr is 0, so this issue needs to be fixed.

Fixes: 50bfd9c06f0f ("net: enetc: set external PHY address in IERB for i.MX94 ENETC")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20251222022628.4016403-1-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c