]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: don't print error from dpaa2_mac_connect if that's EPROBE_DEFER
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 21 May 2021 14:12:20 +0000 (17:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 May 2021 21:49:40 +0000 (14:49 -0700)
commit98c0c6ad83045330a11167c5a8b7a3e374142d66
tree8b2f16b18617eda462bb8898e44b7165e597ed05
parentf488a007ee43144913efd8b4c0b08be926e05385
dpaa2-eth: don't print error from dpaa2_mac_connect if that's EPROBE_DEFER

When booting a board with DPAA2 interfaces defined statically via DPL
(as opposed to creating them dynamically using restool), the driver will
print an unspecific error message.

This change adds the error code to the message, and avoids printing
altogether if the error code is EPROBE_DEFER, because that is not a
cause of alarm.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c