]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Fix handling of cs_change in core implementation
authorMark Brown <broonie@linaro.org>
Sat, 29 Mar 2014 23:48:07 +0000 (23:48 +0000)
committerMark Brown <broonie@linaro.org>
Sun, 30 Mar 2014 00:48:12 +0000 (00:48 +0000)
commited5c5fdc12f09d8e20fa4ac51679355259c0ea9b
treeaf2028d5db595790560568aa155973090cfca3bd
parent6333ef0a6d756a72c48035feae2450b64f0372e4
spi: Fix handling of cs_change in core implementation

The core implementation of cs_change didn't follow the documentation
which says that cs_change in the middle of the transfer means to briefly
deassert chip select, instead it followed buggy drivers which change the
polarity of chip select.  Use a delay of 10us between deassert and
reassert simply from pulling numbers out of a hat.

Reported-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c