From: Trent Piepho Date: Tue, 1 Oct 2013 20:14:39 +0000 (-0700) Subject: spi: spi-mxs: Always clear INGORE_CRC, to keep CS asserted X-Git-Tag: v5.15~19014^2~13^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75e73fa24882fb76e8ef89226893728ed0f78870;p=platform%2Fkernel%2Flinux-starfive.git 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 Cc: Marek Vasut Cc: Fabio Estevam Cc: Shawn Guo Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 991ee01..e2a9cc2 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, { struct mxs_ssp *ssp = &spi->ssp; - if (*first) - writel(BM_SSP_CTRL0_IGNORE_CRC, - ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR); + writel(BM_SSP_CTRL0_IGNORE_CRC, + ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_CLR); mxs_spi_set_cs(spi, cs);