spi: pl022: Handle cs_change for last transfer
authorFredrik Ternerot <fredrik.ternerot@axis.com>
Tue, 13 Nov 2018 12:46:32 +0000 (13:46 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 13 Nov 2018 18:05:49 +0000 (10:05 -0800)
commitc0b07605f1a0285d50596c0243adfa00e3043293
treeef849f0e61125303fa025b24c97f6442490db371
parent82391856191878bb0047259817ab32f88438aa33
spi: pl022: Handle cs_change for last transfer

Do not deselect cs when cs_change is set for the last transfer in the
message. In this case, cs_change indicates that cs should stay selected
until the next transfer.

Signed-off-by: Fredrik Ternerot <fredrikt@axis.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pl022.c