Commit 1675edae authored by Mukesh Ojha's avatar Mukesh Ojha
Browse files

UPSTREAM: pinctrl: Fix the clean up on pinconf_apply_setting failure



When some client does devm_pinctrl_get() followed by
pinctrl_select_state() that does pinmux first successfully and later
during config setting it sets the wrong drive strenght to the pin due to
which pinconf_apply_setting fails. Currently, on failure during config
setting is implemented as if pinmux has failed for one of the pin but
that does not seem right and need to undo the pinmux for all the pin if
config setting fails.

Current commit does a bit refactor to reuse the code and tries to clean
up mux setting on config setting failure.

Bug: 376023321
Signed-off-by: default avatarMukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Link: https://lore.kernel.org/20241224084441.515870-1-mukesh.ojha@oss.qualcomm.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 001d7ef8)
Change-Id: I69c46e0701de9649993c335512c3938dfc776b32
Signed-off-by: default avatarMukesh Ojha <mukesh.ojha@oss.qualcomm.com>
parent d4ffbff9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment