diff options
| author | Girish Mahadevan <girishm@codeaurora.org> | 2016-07-26 16:13:13 -0600 |
|---|---|---|
| committer | Mukesh Kumar Savaliya <msavaliy@codeaurora.org> | 2016-12-23 00:41:35 +0530 |
| commit | 6d97e2ef40b749ac17a7e41fa4e7d7046f171f99 (patch) | |
| tree | 9facfa0c0b5531c6d58774dcd1496c30c337d784 | |
| parent | e379f786aa82c6c94b95cbb06befba802731019a (diff) | |
spi: spi_qsd: Don't restrict first transfer in FIFO mode
In FIFO mode before putting the core in run state the driver currently
only writes a word of data if the payload size is more than the FIFO
size.
Instead always write FIFO worth of data before moving the core to
run state.
Change-Id: I47db9f66c95846dbff882f631b915655c33c3d55
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
| -rw-r--r-- | drivers/spi/spi_qsd.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi_qsd.h b/drivers/spi/spi_qsd.h index fb906939c03a..393e59d4215f 100644 --- a/drivers/spi/spi_qsd.h +++ b/drivers/spi/spi_qsd.h @@ -515,10 +515,7 @@ static inline int msm_spi_prepare_for_write(struct msm_spi *dd) static inline void msm_spi_start_write(struct msm_spi *dd, u32 read_count) { - if (read_count <= dd->input_fifo_size) - msm_spi_write_rmn_to_fifo(dd); - else - msm_spi_write_word_to_fifo(dd); + msm_spi_write_rmn_to_fifo(dd); } static inline void msm_spi_set_write_count(struct msm_spi *dd, int val) |
