]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: dsa: felix: suppress -EPROBE_DEFER errors
authorMichael Walle <michael@walle.cc>
Fri, 8 Apr 2022 10:15:21 +0000 (12:15 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:42:16 +0000 (14:42 +0200)
commit9cbd1137ec0b3962e52338ff9173072621c1f788
treecdd90a0fc6952d1f1391b655783a898236306c58
parentb47ad4d55e08f3d7e4d053ca00153f7a6b9868ec
net: dsa: felix: suppress -EPROBE_DEFER errors

BugLink: https://bugs.launchpad.net/bugs/1969857
[ Upstream commit e6934e4048c91502efcb21da92b7ae37cd8fa741 ]

The DSA master might not have been probed yet in which case the probe of
the felix switch fails with -EPROBE_DEFER:
[    4.435305] mscc_felix 0000:00:00.5: Failed to register DSA switch: -517

It is not an error. Use dev_err_probe() to demote this particular error
to a debug message.

Fixes: 56051948773e ("net: dsa: ocelot: add driver for Felix switch family")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220408101521.281886-1-michael@walle.cc
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/dsa/ocelot/felix_vsc9959.c