
19 May
2021
19 May
'21
5:34 p.m.
On Wed, 19 May 2021 at 06:30, Patrick Delaunay patrick.delaunay@foss.st.com wrote:
From: Patrick Delaunay patrick.delaunay@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@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@chromium.org