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>
This commit is contained in:
Girish Mahadevan 2016-07-26 16:13:13 -06:00 committed by Mukesh Kumar Savaliya
parent e379f786aa
commit 6d97e2ef40

View file

@ -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)