projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6045b4
)
pinctrl: core: Do not add device links for hogs
author
Linus Walleij
<linus.walleij@linaro.org>
Thu, 23 May 2019 22:11:43 +0000
(
00:11
+0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 24 May 2019 08:08:04 +0000
(10:08 +0200)
Hogs would create circular device links, so do not link
the device to itself.
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/core.c
b/drivers/pinctrl/core.c
index d757c51d7114f9cd3abb1a40c6551656a6c532bd..41adb4e47dc0ecd91a5f635c60f60668e281c0a8 100644
(file)
--- a/
drivers/pinctrl/core.c
+++ b/
drivers/pinctrl/core.c
@@
-1271,7
+1271,9
@@
static int pinctrl_commit_state(struct pinctrl *p, struct pinctrl_state *state)
goto unapply_new_state;
}
- pinctrl_link_add(setting->pctldev, p->dev);
+ /* Do not link hogs (circular dependency) */
+ if (p != setting->pctldev->p)
+ pinctrl_link_add(setting->pctldev, p->dev);
}
p->state = state;