diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-01-02 17:48:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-05 22:36:01 -0800 |
commit | 7b483af8df05ac6f74cfad572472d7d25942ef55 (patch) | |
tree | 0f76668d25f013be7cdf9d2b460118f4720bcb3e | |
parent | 128e53423c64343f4974fbcb29758a86a40dad35 (diff) | |
download | linux-stable-7b483af8df05ac6f74cfad572472d7d25942ef55.tar.gz linux-stable-7b483af8df05ac6f74cfad572472d7d25942ef55.tar.bz2 linux-stable-7b483af8df05ac6f74cfad572472d7d25942ef55.zip |
spi: dw-mid: fix FIFO size
commit 67bf9cda4b498b8cea4a40be67a470afe57d2e88 upstream.
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)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index 46c6d58e1fda..efff55537d8a 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c @@ -219,7 +219,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); |