Skip to content
Commit df451f83 authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Linus Walleij
Browse files

gpio: of: fix Freescale SPI CS quirk handling

On the gta04 we see:
spi_gpio: probe of spi_lcd failed with error -2

The quirk introduced in
commit e3023bf8 ("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: e3023bf8

 ("gpio: of: Handle the Freescale SPI CS")
Suggested-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20190816165000.32334-1-andreas@kemnade.info
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 68e03b85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment