]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: don't fall back to pinctrl_select_state_simple()
authorMichael Walle <michael@walle.cc>
Wed, 18 Jan 2023 12:12:22 +0000 (13:12 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 27 Jan 2023 17:51:26 +0000 (12:51 -0500)
commit7ae7262ce41e8812716c8e5b12c8b5e9ef1e2671
treee9151f4fdda807982c521eade2078c0e6f5d1fc9
parent5dc441dd1c990cf5e28725bdbedce517abb9b710
pinctrl: don't fall back to pinctrl_select_state_simple()

If CONFIG_PINCTRL_FULL is enabled, never fall back to the simple
implementation. pinctrl_select_state() is called for each device and it
is expected to fail. A fallback to the simple imeplementation doesn't
make much sense.

To keep the return code consistent, we need to change the -EINVAL (which
was ignored before) to -ENOSYS.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-uclass.c