Re: [PATCH] spi: Add missing error handling for CS GPIOs

2019-04-08 Thread Linus Walleij
On Wed, Apr 3, 2019 at 4:46 PM Geert Uytterhoeven wrote: > While devm_gpiod_get_index_optional() returns NULL if the GPIO is not > present (i.e. -ENOENT), it may still return other error codes, like > -EPROBE_DEFER. Currently these are not handled, leading to > unrecoverable failures later in ca

[PATCH] spi: Add missing error handling for CS GPIOs

2019-04-03 Thread Geert Uytterhoeven
While devm_gpiod_get_index_optional() returns NULL if the GPIO is not present (i.e. -ENOENT), it may still return other error codes, like -EPROBE_DEFER. Currently these are not handled, leading to unrecoverable failures later in case of probe deferral: gpiod_set_consumer_name: invalid GPIO (e