diff mbox

[v2,1/2] spi: dw-mid: fix FIFO size

Message ID 1420213732-5141-1-git-send-email-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Commit 67bf9cda4b498b8cea4a40be67a470afe57d2e88
Headers show

Commit Message

Andy Shevchenko Jan. 2, 2015, 3:48 p.m. UTC
The FIFO size is 40 accordingly to the specifications, but this means 0x40,
i.e. 64 bytes. This patch fixes the typo and enables FIFO size autodetection
for Intel MID devices.

Fixes: 7063c0d942a1 (spi/dw_spi: add DMA support)
Cc: stable@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-dw-mid.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Brown Jan. 5, 2015, 8:22 p.m. UTC | #1
On Fri, Jan 02, 2015 at 05:48:51PM +0200, Andy Shevchenko wrote:
> The FIFO size is 40 accordingly to the specifications, but this means 0x40,
> i.e. 64 bytes. This patch fixes the typo and enables FIFO size autodetection
> for Intel MID devices.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c
index 7281316..a67d37c 100644
--- a/drivers/spi/spi-dw-mid.c
+++ b/drivers/spi/spi-dw-mid.c
@@ -271,7 +271,6 @@  int dw_spi_mid_init(struct dw_spi *dws)
 	iounmap(clk_reg);
 
 	dws->num_cs = 16;
-	dws->fifo_len = 40;	/* FIFO has 40 words buffer */
 
 #ifdef CONFIG_SPI_DW_MID_DMA
 	dws->dma_priv = kzalloc(sizeof(struct mid_dma), GFP_KERNEL);