pinctrl: pinmux: Suppress error message for -EPROBE_DEFER
authorAndre Przywara <andre.przywara@arm.com>
Tue, 5 Mar 2024 14:38:59 +0000 (14:38 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Mar 2024 22:29:29 +0000 (23:29 +0100)
commit4f74a3b3070ddab7d5e10a75e1f1ba955e085c1f
treedf1480cf4e41d35e9f1bbfa125637539cce23571
parent576623d706613feec2392ef16b84e23a46200552
pinctrl: pinmux: Suppress error message for -EPROBE_DEFER

EPROBE_DEFER error returns are not really critical, since they cancel
the probe process, but the kernel will return later and retry.
However, depending on the probe order, this might issue quite some
verbatim and scary, though pointless messages:

[    2.388731] 300b000.pinctrl: pin-224 (5000000.serial) status -517
[    2.397321] 300b000.pinctrl: could not request pin 224 (PH0) from group PH0  on device 300b000.pinctrl

Replace dev_err() with dev_err_probe(), which not only drops the
priority of the message from error to debug, but also puts some text
into debugfs' devices_deferred file, for later reference.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20240305143859.2449147-1-andre.przywara@arm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinmux.c