spi: exynos: Support SPI_PREAMBLE mode
authorRajeshwari Shinde <rajeshwari.s@samsung.com>
Tue, 28 May 2013 20:10:38 +0000 (20:10 +0000)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Sun, 2 Jun 2013 18:34:40 +0000 (00:04 +0530)
commite4eaef8910df805d511b1cb9b2caafa7d2827fdc
treefc58af501f7a5e5e125133c99c349c3cc1c81d6b
parentbb786b84bdbcfe0474d53a54c82c5695494a6ab5
spi: exynos: Support SPI_PREAMBLE mode

Support interfaces with a preamble before each received message.

We handle this when the client has requested a SPI_XFER_END, meaning
that we must close of the transaction. In this case we read until we
see the preamble (or a timeout occurs), skipping all data before and
including the preamble. The client will receive only data bytes after
the preamble.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/exynos_spi.c