mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
net: dsa: felix: suppress -EPROBE_DEFER errors
[ Upstream commite6934e4048] 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:5605194877("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>
This commit is contained in:
parent
f2cc341fcc
commit
2ad9d890d8
|
|
@ -1466,7 +1466,7 @@ static int felix_pci_probe(struct pci_dev *pdev,
|
|||
|
||||
err = dsa_register_switch(ds);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "Failed to register DSA switch: %d\n", err);
|
||||
dev_err_probe(&pdev->dev, err, "Failed to register DSA switch\n");
|
||||
goto err_register_ds;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user