diff options
author | Trent Piepho <tpiepho@gmail.com> | 2013-10-01 16:14:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-17 20:00:29 -0400 |
commit | 75e73fa24882fb76e8ef89226893728ed0f78870 (patch) | |
tree | 05cfaf0f73cea86693c9d16f1bdb38c2bfb25105 /drivers/spi/spi-mxs.c | |
parent | f5bc7384dc4e9bf3bcf976ef0c1ac9704fa1ad43 (diff) |
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>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
-rw-r--r-- | drivers/spi/spi-mxs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 991ee01731b2..e2a9cc21dff1 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c | |||
@@ -318,9 +318,8 @@ static int mxs_spi_txrx_pio(struct mxs_spi *spi, int cs, | |||
318 | { | 318 | { |
319 | struct mxs_ssp *ssp = &spi->ssp; | 319 | struct mxs_ssp *ssp = &spi->ssp; |
320 | 320 | ||
321 | if (*first) | 321 | writel(BM_SSP_CTRL0_IGNORE_CRC, |
322 | writel(BM_SSP_CTRL0_IGNORE_CRC, | 322 | ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR); |
323 | ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR); | ||
324 | 323 | ||
325 | mxs_spi_set_cs(spi, cs); | 324 | mxs_spi_set_cs(spi, cs); |
326 | 325 | ||