Skip to content

Commit 67bf9cd

Browse files
andy-shevbroonie
authored andcommitted
spi: dw-mid: fix FIFO size
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: 7063c0d (spi/dw_spi: add DMA support) Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
1 parent d297933 commit 67bf9cd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/spi/spi-dw-mid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ int dw_spi_mid_init(struct dw_spi *dws)
271271
iounmap(clk_reg);
272272

273273
dws->num_cs = 16;
274-
dws->fifo_len = 40; /* FIFO has 40 words buffer */
275274

276275
#ifdef CONFIG_SPI_DW_MID_DMA
277276
dws->dma_priv = kzalloc(sizeof(struct mid_dma), GFP_KERNEL);

0 commit comments

Comments
 (0)