]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: core: use dev_err_probe() when applying state
authorMichal Piekos <michal.piekos@mmpsystems.pl>
Sun, 1 Mar 2026 16:46:31 +0000 (17:46 +0100)
committerLinus Walleij <linusw@kernel.org>
Tue, 3 Mar 2026 07:30:33 +0000 (08:30 +0100)
commit33d4feff673bb32d3c94a6f25e7ca0be966ef410
tree20fb3115654f23adc1f7131579fb560c0b72ab6e
parentcc2f5e2aeb6c69556837e45756b3ddded98b3898
pinctrl: core: use dev_err_probe() when applying state

When applying a pinctrl state, -EPROBE_DEFER may be returned if
dependencies are not ready and the consumer will retry probing.

This is normal probe ordering behaviour and not a real error.
However, pinctrl core currently logs:

  "Error applying setting, reverse things back"

even when the return value is -EPROBE_DEFER, resulting in noisy
boot-time error messages.

Replace dev_err() with dev_err_probe() to handle -EPROBE_DEFER
consistently and suppress error logging for deferred probes.

No functional change intended.

Signed-off-by: Michal Piekos <michal.piekos@mmpsystems.pl>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/core.c