diff options
author | Lad Prabhakar <[email protected]> | 2024-07-23 17:47:44 +0100 |
---|---|---|
committer | Geert Uytterhoeven <[email protected]> | 2024-08-02 11:25:31 +0200 |
commit | d56abfed1c02814b5ee96b0ed1f989ea9d7f6cbb (patch) | |
tree | 495b462705974b1908308657ac78a47d53dd7520 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | f82c086bcca6365ce5361a2fb668556fe0c4dc38 (diff) |
pinctrl: renesas: rzg2l: Return -EINVAL if the pin doesn't support PIN_CFG_OEN
Update the rzg2l_pinctrl_pinconf_get() function to return -EINVAL for
PIN_CONFIG_OUTPUT_ENABLE config if the pin doesn't support the PIN_CFG_OEN
configuration.
-EINVAL is a valid error when dumping the pin configurations. Returning
-EOPNOTSUPP for a pin that does not support PIN_CFG_OEN resulted in the
message 'ERROR READING CONFIG SETTING 16' being printed during dumping
pinconf-pins.
For consistency do similar change in rzg2l_pinctrl_pinconf_set() for
PIN_CONFIG_OUTPUT_ENABLE config.
Fixes: a9024a323af2 ("pinctrl: renesas: rzg2l: Clean up and refactor OEN read/write functions")
Signed-off-by: Lad Prabhakar <[email protected]>
Tested-by: Claudiu Beznea <[email protected]>
Reviewed-by: Paul Barker <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions