]> git.karo-electronics.de Git - linux-beck.git/commit
spi: Fix regression in spi-bitbang-txrx.h
authorLars Persson <lars.persson@axis.com>
Wed, 29 Jul 2015 07:32:02 +0000 (09:32 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jul 2015 14:01:07 +0000 (15:01 +0100)
commit26a67ec47a4c58fe79c6421c3dc3d697d322d2d6
tree4cdbaf68132b2ad7b972bffe00fcf20cae9bef39
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
spi: Fix regression in spi-bitbang-txrx.h

This patch fixes a regression introduced by commit 232a5adc5199 ("spi:
bitbang: only toggle bitchanges"). The attempt to optimize writes of
consecutive bit patterns broke most of the combinations of word size
and SPI modes due to selecting the wrong bit as the MSB value.

Fixes: 232a5adc5199 (spi: bitbang: only toggle bitchanges)
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-bitbang-txrx.h