[PATCH v2 1/2] cmd: pinmux: update result of do_status

Simon Glass sjg at chromium.org
Wed May 19 17:34:01 CEST 2021


On Wed, 19 May 2021 at 06:30, Patrick Delaunay
<patrick.delaunay at foss.st.com> wrote:
>
> From: Patrick Delaunay <patrick.delaunay at st.com>
>
> Update the result of do_status and always returns a CMD_RET_ value
> (-ENOSYS was a possible result of show_pinmux).
>
> This patch also adds pincontrol name in error messages (dev->name)
> and treats correctly the status sub command when pin-controller device is
> not selected.
>
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>
> Changes in v2:
> - keep result in show_pinmux
> - add comment in API pinctrl_get_pins_count() for -ENOSYS result
>
>  cmd/pinmux.c                 | 31 +++++++++++++++++--------------
>  include/dm/pinctrl.h         |  2 +-
>  test/py/tests/test_pinmux.py |  4 ++--
>  3 files changed, 20 insertions(+), 17 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list