]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:05:34 +0000 (10:05 -0700)
commit1583eaece6faf7b389085771c0eb4bf1af5960f2
treeaa685e960ea0b87043197ccf57a8f77402c91110
parent7f3f69a695fe2d10a9afad4419c68d731f775b94
spi: Fix regression in spi-bitbang-txrx.h

commit 26a67ec47a4c58fe79c6421c3dc3d697d322d2d6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-bitbang-txrx.h