Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d97e2ef authored by Girish Mahadevan's avatar Girish Mahadevan Committed by Mukesh Kumar Savaliya
Browse files

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: default avatarMukesh Kumar Savaliya <msavaliy@codeaurora.org>
parent e379f786
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);
}

static inline void msm_spi_set_write_count(struct msm_spi *dd, int val)