spi: tegra20-slink: change chip select action order
authorRandolph Maaßen <gaireg@gaireg.de>
Tue, 26 Mar 2019 14:30:50 +0000 (15:30 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 27 Mar 2019 12:33:33 +0000 (12:33 +0000)
commit0e694df356c0a24ca0de27cca8f70d900969988a
tree6a71c82ff39f46e95a6822d44490b19a0342340f
parent69c8a9bcb03222ad3b949064ac05de463c7c9aa3
spi: tegra20-slink: change chip select action order

To transfer via SPI the tegra20-slink driver first sets the command
register, which contains the chip select value, and after that the
command2 register, which contains the chip select line. This leads to a
small spike in the chip selct 0 line between the set of the value and
the selection of the chip select line.

This commit changes the order of the register writes so that first the
chip select line is chosen and then the value is set, removing the
spike.

Signed-off-by: Randolph Maaßen <gaireg@gaireg.de>
Reviewed-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-slink.c