OSDN Git Service

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)
commit544248623b95eefbe4bea5fa5c68ab0da495eaae
treed7cd94649c8fe1783587620e6f83fe7cdf72d3ee
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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