Chen-Yu Tsai ce27fb2c56 gpio: Handle deferred probing in of_find_gpio() properly
of_get_named_gpiod_flags() used directly in of_find_gpio() or indirectly
through of_find_spi_gpio() or of_find_regulator_gpio() can return
-EPROBE_DEFER. This gets overwritten by the subsequent of_find_*_gpio()
calls.

This patch fixes this by trying of_find_spi_gpio() or
of_find_regulator_gpio() only if deferred probing was not requested by
the previous of_get_named_gpiod_flags() call.

Fixes: 6a537d48461d ("gpio: of: Support regulator nonstandard GPIO properties")
Fixes: c85823390215 ("gpio: of: Support SPI nonstandard GPIO properties")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
[Augmented to fit with Maxime's patch]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-02-27 09:48:07 +01:00
..
2016-03-30 10:38:51 +02:00
2017-10-25 11:25:10 +02:00
2016-02-16 00:19:53 +01:00
2016-12-30 09:18:10 +01:00
2017-10-07 00:01:08 +02:00
2017-12-22 15:24:31 +01:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2018-01-09 14:51:00 +01:00
2017-08-23 09:21:54 +02:00