]> git.baikalelectronics.ru Git - kernel.git/commit
spi: atmel: Improve and fix GPIO CS usage
authorGregory CLEMENT <gregory.clement@bootlin.com>
Thu, 17 Oct 2019 14:18:45 +0000 (16:18 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 18 Oct 2019 17:34:03 +0000 (18:34 +0100)
commitc49531375057921532df40d9b68e3f5fb652f0ae
tree18a5a9c8bb387e9b98fe0b620e8eec17e51e67c8
parent8a571f7a59f5a8120815e7c27dcb27e080b422a4
spi: atmel: Improve and fix GPIO CS usage

In the previous implementation of this driver, the index of the GPIO
used as CS was linked to the offset of the CS register used to
configure the transfer.

With this new implementation the first CS register not used by
internal CS is associated to all the GPIO CS. It allows to not be
anymore limited to have only 4 CS managed, now it is possible to have
in the same time until 3 internal CS and no more limit for the CS
GPIO.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20191017141846.7523-7-gregory.clement@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c