spi/s3c64xx: Factor transfer start out of enable/disable_cs()
authorMark Brown <broonie@linaro.org>
Fri, 27 Sep 2013 18:56:31 +0000 (19:56 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 7 Oct 2013 19:04:01 +0000 (20:04 +0100)
The hardware level /CS handling is tied to the start of the data path so
is rolled into the same function as we use to manipulate GPIO /CS. In
order to support factoring out the /CS handling into the core separate the
two and explicitly start transfers separately to the /CS handling.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c

index e6312322f66a8997c1b5b0a7d765316291b3ab57..8e732a1b8a9b466c1af0320a17a62bb1f9d556b1 100644 (file)
@@ -927,6 +927,9 @@ static int s3c64xx_spi_transfer_one_message(struct spi_master *master,
                /* Start the signals */
                writel(0, sdd->regs + S3C64XX_SPI_SLAVE_SEL);
 
+               /* Start the signals */
+               writel(0, sdd->regs + S3C64XX_SPI_SLAVE_SEL);
+
                spin_unlock_irqrestore(&sdd->lock, flags);
 
                status = wait_for_xfer(sdd, xfer, use_dma);
This page took 0.025319 seconds and 5 git commands to generate.