v1 --> v2:
Split bugfix and cleanup into two patches.
Zhen Lei (2):
pinctrl: single: Fix error return code in
pcs_parse_bits_in_pinctrl_entry()
pinctrl: single: Move test PCS_HAS_PINCONF in
pcs_parse_bits_in_pinctrl_entry() to the beginning
drivers/pinctrl/pinctrl-single.c | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
--
2.25.1
Fix to return -ENOTSUPP instead of 0 when PCS_HAS_PINCONF is true, which
is the same as that returned in pcs_parse_pinconf().
Fixes: 4e7e8017a80e ("pinctrl: pinctrl-single: enhance to configure multiple pins of different modules")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhen Lei <[email protected]>
---
drivers/pinctrl/pinctrl-single.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index e3aa64798f7d..4fcae8458359 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -1224,6 +1224,7 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs,
if (PCS_HAS_PINCONF) {
dev_err(pcs->dev, "pinconf not supported\n");
+ res = -ENOTSUPP;
goto free_pingroups;
}
--
2.25.1
On Thu, Jul 22, 2021 at 5:40 AM Zhen Lei <[email protected]> wrote:
> v1 --> v2:
> Split bugfix and cleanup into two patches.
Patches applied! Thanks for fixing this Zhen, sorry for the delay.
Yours,
Linus Walleij