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: 6a537d4846 ("gpio: of: Support regulator nonstandard GPIO properties")
Fixes: c858233902 ("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
..
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-06 09:59:40 -08:00
2018-02-08 15:05:16 -05:00
2018-01-10 17:50:01 +01:00
2018-02-09 09:40:33 -08:00
2018-01-19 22:59:33 -05:00
2018-02-08 11:38:59 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 16:35:31 -08:00
2018-02-11 14:34:03 -08:00
2018-02-07 11:22:44 -08:00
2018-02-08 10:21:39 +01:00
2018-02-02 10:01:04 -08:00
2018-02-10 13:16:35 -08:00
2018-02-03 00:26:10 -07:00
2018-02-02 09:50:51 -08:00
2018-02-11 14:34:03 -08:00
2018-01-09 20:14:23 +01:00
2018-01-23 09:04:10 +01:00
2018-02-11 14:34:03 -08:00
2018-02-08 10:44:25 -08:00
2018-02-27 09:48:07 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-27 09:34:22 -08:00
2018-02-01 10:31:17 -08:00
2018-02-04 10:57:43 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 12:03:54 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 16:35:31 -08:00
2018-01-17 01:19:38 -05:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-09 19:32:41 -08:00
2018-01-31 11:32:27 -08:00
2018-02-01 10:31:17 -08:00
2018-02-11 14:34:03 -08:00
2018-01-28 22:17:24 -05:00
2018-01-16 16:47:29 +01:00
2018-02-03 00:26:26 -07:00
2018-02-04 11:16:35 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 11:48:49 -08:00
2018-02-06 18:32:44 -08:00
2018-02-01 09:40:49 -08:00
2018-02-02 14:22:53 -08:00
2018-02-11 14:34:03 -08:00
2018-01-31 12:55:31 -08:00
2018-01-17 12:56:24 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-23 12:17:42 -06:00
2018-01-30 12:25:59 +00:00
2018-02-05 10:07:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-06 09:59:40 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 10:21:39 +01:00
2018-01-09 17:01:15 +01:00
2018-02-01 16:35:31 -08:00
2018-01-22 16:45:26 +01:00
2018-01-26 17:57:34 +00:00
2018-02-01 10:37:39 +02:00
2018-02-11 14:34:03 -08:00
2018-02-09 14:49:46 -08:00
2018-01-11 18:05:06 -08:00
2018-02-06 15:04:58 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-09 16:15:20 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-09 19:32:41 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 16:26:45 +02:00
2018-01-31 19:25:25 -08:00
2018-02-07 11:54:34 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 10:31:17 -08:00
2018-02-06 09:59:40 -08:00