]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: of: fix Freescale SPI CS quirk handling
authorAndreas Kemnade <andreas@kemnade.info>
Fri, 16 Aug 2019 16:50:00 +0000 (18:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Aug 2019 22:28:50 +0000 (00:28 +0200)
commitaeca6791e3bfb14688562a2a3e872ea41a70f780
tree4d47a733a5014d2b51d440a40deef4d40c9ca989
parenta2d7e360abbcabaf6d4d2d07cb0699fe26f9ab24
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 952dd0b36741 ("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: 952dd0b36741 ("gpio: of: Handle the Freescale SPI CS")
Suggested-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20190816165000.32334-1-andreas@kemnade.info
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c