]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit401dca3862de83b52527ad54c2f4c5faeaf1a998
tree6a71c82ff39f46e95a6822d44490b19a0342340f
parentc787e30fbb0b9770fe06db51591ad073cc8d4e3e
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