]> git.baikalelectronics.ru Git - kernel.git/commit
spi: qup: support using GPIO as chip select line
authorRobert Marko <robert.marko@sartura.hr>
Thu, 6 Oct 2022 19:48:19 +0000 (21:48 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:46:59 +0000 (12:46 +0100)
commit8b115b583c470ce2e9a34ca900d88c63493f61a4
tree8df886e47133b3c7780c793d6ccc984fc21ae2d2
parent90a5a913541918822d878c9df2d0eb4ed0711597
spi: qup: support using GPIO as chip select line

Most of the device with QUP SPI adapter are actually using GPIO-s for
chip select.

However, this stopped working after ("spi: Retire legacy GPIO handling")
as it introduced a check on ->use_gpio_descriptors flag and since spi-qup
driver does not set the flag it meant that all of boards using GPIO-s and
with QUP adapter SPI devices stopped working.

So, to enable using GPIO-s again set ->use_gpio_descriptors to true and
populate ->max_native_cs.

Fixes: 6b7a29dc46df ("spi: Retire legacy GPIO handling")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: luka.perkov@sartura.hr
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221006194819.1536932-1-robert.marko@sartura.hr
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c