Re: [PATCH] gpio: of: fix Freescale SPI CS quirk handling

From: Linus Walleij
Date: Fri Aug 16 2019 - 18:29:30 EST


On Fri, Aug 16, 2019 at 6:50 PM Andreas Kemnade <andreas@xxxxxxxxxxxx> wrote:

> On the gta04 we see:
> spi_gpio: probe of spi_lcd failed with error -2
>
> The quirk introduced in
> commit e3023bf80639 ("gpio: of: Handle the Freescale SPI CS")
> can also be triggered by a temporary -EPROBE_DEFER and
> so "convert" it to a hard -ENOENT.
>
> Disable that conversion by checking for -EPROBE_DEFER.
>
> Fixes: e3023bf80639 ("gpio: of: Handle the Freescale SPI CS")
> Suggested-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
> Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>

Good catch! Patch applied for fixes.

Yours,
Linus Walleij