Skip to content

Commit

Permalink
spi/s3c64xx: Factor transfer start out of enable/disable_cs()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Oct 7, 2013
1 parent 0f5a751 commit ebd805c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/spi/spi-s3c64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ebd805c

Please sign in to comment.