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-01-12 11:05:24 +01:00
2018-01-31 12:25:27 -08:00
2017-11-08 14:06:21 +01:00
2017-11-08 14:06:21 +01:00
2017-11-08 14:06:21 +01:00
2017-11-08 14:06:21 +01:00
2018-01-13 22:12:07 +01:00
2018-01-13 22:14:56 +01:00
2017-08-14 15:01:12 +02:00
2018-01-13 22:18:34 +01:00
2018-01-13 22:22:49 +01:00
2018-01-13 22:47:48 +01:00
2017-12-28 13:53:06 +01:00
2017-12-02 22:42:22 +01:00
2018-01-31 12:25:27 -08:00
2018-01-31 12:25:27 -08:00
2018-01-13 22:56:52 +01:00
2018-01-14 01:48:48 +01:00
2018-01-14 01:56:24 +01:00
2018-01-14 02:00:10 +01:00
2018-01-14 02:00:10 +01:00
2018-01-31 12:25:27 -08:00
2017-11-08 14:06:21 +01:00
2017-10-25 11:25:10 +02:00
2017-09-22 11:02:10 +02:00
2017-11-02 11:10:55 +01:00
2017-08-01 13:43:55 +02:00
2017-12-02 22:42:35 +01:00
2017-08-14 15:01:12 +02:00
2017-10-25 11:25:38 +02:00
2017-11-08 14:06:21 +01:00
2017-11-08 14:06:21 +01:00
2017-12-02 22:42:21 +01:00
2017-12-02 22:42:32 +01:00
2017-10-25 11:25:38 +02:00
2017-07-31 15:26:57 +02:00
2017-11-08 14:06:21 +01:00
2017-11-29 13:25:23 +01:00
2017-10-19 22:40:07 +02:00
2017-08-14 16:06:24 +02:00
2017-10-31 13:13:34 +01:00
2018-01-10 00:43:42 +01:00
2017-08-21 00:06:35 +02:00
2018-01-16 23:42:36 +01:00
2017-12-08 15:34:15 +01:00
2017-10-25 11:25:40 +02:00
2017-08-14 15:03:38 +02:00
2017-08-14 15:00:43 +02:00
2017-08-21 00:09:33 +02:00
2017-08-21 00:10:00 +02:00
2018-01-03 08:46:08 +01:00
2017-12-02 22:41:43 +01:00
2017-11-08 14:06:21 +01:00
2017-08-21 00:08:52 +02:00
2017-11-08 14:06:21 +01:00
2018-01-10 14:39:28 +01:00
2017-11-08 14:06:21 +01:00
2017-10-07 00:01:08 +02:00
2017-11-09 09:38:42 +01:00
2017-12-22 15:24:31 +01:00
2017-08-21 00:06:04 +02:00
2018-01-17 07:44:16 +01:00
2017-09-21 14:14:17 +02:00
2017-11-08 14:06:21 +01:00
2017-11-13 11:43:10 +01:00
2017-12-28 12:26:35 +01:00
2018-01-11 10:49:32 +01:00
2017-08-14 15:37:38 +02:00
2017-09-04 14:41:02 +01:00
2017-08-23 10:20:16 +02:00
2017-09-22 11:02:10 +02:00
2017-11-30 15:37:42 +01:00
2017-11-08 14:06:21 +01:00
2017-11-08 14:06:21 +01:00
2018-01-09 14:51:00 +01:00
2017-11-08 14:06:21 +01:00
2017-12-29 21:13:04 +01:00
2017-08-14 15:01:12 +02:00
2017-11-08 14:06:21 +01:00
2017-08-23 09:21:54 +02:00
2017-11-08 14:06:21 +01:00
2017-11-08 14:06:21 +01:00
2018-02-02 14:22:53 -08:00
2017-12-22 15:24:31 +01:00
2018-02-27 09:48:07 +01:00
2017-12-20 10:34:58 +01:00
2018-02-11 14:34:03 -08:00
2018-01-31 12:25:27 -08:00
2018-01-11 10:17:32 +01:00
2018-01-10 14:39:28 +01:00