]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Handle counting of Freescale chipselects
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Nov 2019 08:37:17 +0000 (09:37 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 28 Nov 2019 13:17:17 +0000 (13:17 +0000)
commit4ae6a313a18f5d1c5cbaefee8ccaddc3294dc9c3
tree5dc1372ad879eeb09097ae2f017587e3cabfd1f6
parent9ea53e9850443892604033045f2dd303aadb2337
gpio: Handle counting of Freescale chipselects

We have a special quirk to handle the Freescale
nonstandard SPI chipselect GPIOs in the gpiolib-of.c
file, but it currently only handles the case where
the GPIOs are actually requested (gpiod_*get()).

We also need to handle that the SPI core attempts
to count the GPIOs before use, and that needs a
similar quirk in the OF part of the library.

Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Reported-by: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: a673e05903a2 ("spi: fsl: Convert to use CS GPIO descriptors")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Link: https://lore.kernel.org/r/20191128083718.39177-2-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/gpio/gpiolib-of.c