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:
parent
e379f786aa
commit
6d97e2ef40
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue