Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: do not defer device tree hogs

commit af1024e0f7cde9023ddd0f3116db03911d5914c0
"pinctrl: skip deferral of hogs"

Attempts to avoid probe deferral on hogged pins, but we
forgot the device tree case. This patch fixes this.

Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+5
+5
drivers/pinctrl/devicetree.c
··· 141 141 pctldev = find_pinctrl_by_of_node(np_pctldev); 142 142 if (pctldev) 143 143 break; 144 + /* Do not defer probing of hogs (circular loop) */ 145 + if (np_pctldev == p->dev->of_node) { 146 + of_node_put(np_pctldev); 147 + return -ENODEV; 148 + } 144 149 } 145 150 of_node_put(np_pctldev); 146 151