Re: [PATCH v2] gpiolib: Defer on non-DT find_chip_by_name() failure

From: Linus Walleij
Date: Mon Jul 09 2018 - 09:18:22 EST


On Wed, Jul 4, 2018 at 12:18 AM Janusz Krzysztofik <jmkrzyszt@xxxxxxxxx> wrote:

> Avoid replication of error code conversion in non-DT GPIO consumers'
> code by returning -EPROBE_DEFER from gpiod_find() in case a chip
> identified by its label in a registered lookup table is not ready.
>
> See https://lkml.org/lkml/2018/5/30/176 for example case.
>
> Suggested-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx>
> Signed-off-by: Janusz Krzysztofik <jmkrzyszt@xxxxxxxxx>
> Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx>
> ---
> Changelog
> v2: fix typo (latar -> later) - thanks Boris and Andy for catching this

Patch applied as the discussion seems to conclude this should
work fine, I hope we will notice if it doesn't!

Yours,
Linus Walleij