On Wed, 19 May 2021 at 06:30, Patrick Delaunay <[email protected]> wrote: > > From: Patrick Delaunay <[email protected]> > > 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 <[email protected]> > --- > > 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 <[email protected]>

