Re: [PATCH] pinctrl: core: handle pinctrl_get failure

From: Linus Walleij
Date: Fri Sep 25 2015 - 13:24:03 EST

On Thu, Sep 10, 2015 at 6:38 AM, Peng Fan <van.freenix@xxxxxxxxx> wrote:

> Need to do error handling path when pinctrl_get fails. Also when
> pinctrl_get success, insert 'pctldev->node' to pinctrldev_list.
> Signed-off-by: Peng Fan <van.freenix@xxxxxxxxx>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>

I think this patch is totally wrong and you have probably not tested
it using pinctrl hogs.

pinctr_get() from self will *not work* unless the device is added to
the list *first*.

Dropping this.

Linus Walleij
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at