Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit eb4ec68a authored by Deepak's avatar Deepak Committed by Linus Walleij
Browse files

driver: base: pinctrl: return error from pinctrl_bind_pins()



strict pin controller returns -EINVAL in case of pin request which
is already claimed by somebody else.
Following is the sequence of calling pin_request() from
pinctrl_bind_pins():-
pinctrl_bind_pins()->pinctrl_select_state()->pinmux_enable_setting()->
pin_request()

But pinctrl_bind_pins() only returns -EPROBE_DEFER which makes device
driver probe successful even if the pin request is rejected by the pin
controller subsystem.

This commit modifies pinctrl_bind_pins() to return error if the pin is
rejected by pin control subsystem.

Signed-off-by: default avatarDeepak Das <deepak_das@mentor.com>
[Rewrote to be cleaner]
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9b5fb0ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment