]> git.baikalelectronics.ru Git - kernel.git/commit
spi: orion: Rework GPIO CS handling
authorJan Kundrát <jan.kundrat@cesnet.cz>
Fri, 26 Jan 2018 22:56:10 +0000 (23:56 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 14 Feb 2018 16:26:49 +0000 (16:26 +0000)
commit6ad856869140480ac921f922d4faa498ce0edb7d
treed7cd94649c8fe1783587620e6f83fe7cdf72d3ee
parentbcac507057f6668c45308343ba41f4c91a086136
spi: orion: Rework GPIO CS handling

- Claim the GPIO from the driver, not via DT bindings or through the
  platform code
- Find an unused HW CS signal because Orion needs to drive one for each
  SPI transaction

The spi-orion.c was the only driver which supported (or cared about) the
CS GPIO, while it wasn't actually requesting it. This change means that
the DT bindings should stop hogging the GPIO CS pins because it's now
being handled by the driver.

Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c