From 6d97e2ef40b749ac17a7e41fa4e7d7046f171f99 Mon Sep 17 00:00:00 2001 From: Girish Mahadevan Date: Tue, 26 Jul 2016 16:13:13 -0600 Subject: [PATCH] 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 --- drivers/spi/spi_qsd.h | 5 +---- 1 file changed, 1 insertion(+), 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)