]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-mxs: Always clear INGORE_CRC, to keep CS asserted
authorTrent Piepho <tpiepho@gmail.com>
Tue, 1 Oct 2013 20:14:39 +0000 (13:14 -0700)
committerMark Brown <broonie@linaro.org>
Fri, 18 Oct 2013 00:00:29 +0000 (01:00 +0100)
commit9f952ea648738f3110acdc237bf67b9da11ae8a6
tree05cfaf0f73cea86693c9d16f1bdb38c2bfb25105
parent29819d32d77a3003d95d5b00f83b6caa792ad115
spi: spi-mxs: Always clear INGORE_CRC, to keep CS asserted

INGORE_CRC, better named DEASSERT_CS, should be cleared on all tranfers
except the last.  So instead of only clearing it on the first transfer, we
can just always clear it.  It will set on the last transfer.

This removes the only use of the "first" flag in the transfer functions, so
that flag can be then be removed.

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mxs.c