From: Alexander Stein Date: Tue, 4 Nov 2014 08:20:18 +0000 (+0100) Subject: spi: fsl-dspi: Fix CTAR selection X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~151^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cc7b04740effa5cc0af53f434134b5859d58b73;p=pandora-kernel.git spi: fsl-dspi: Fix CTAR selection There are only 4 CTAR registers (CTAR0 - CTAR3) so we can only use the lower 2 bits of the chip select to select a CTAR register. SPI_PUSHR_CTAS used the lower 3 bits which would result in wrong bit values if the chip selects 4/5 are used. For those chip selects SPI_CTAR even calculated offsets of non-existing registers. Signed-off-by: Alexander Stein Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed