mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: 7063c0d942
(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: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
322c22aadc
commit
f137e937cb
1 changed files with 0 additions and 1 deletions
|
@ -219,7 +219,6 @@ int dw_spi_mid_init(struct dw_spi *dws)
|
||||||
iounmap(clk_reg);
|
iounmap(clk_reg);
|
||||||
|
|
||||||
dws->num_cs = 16;
|
dws->num_cs = 16;
|
||||||
dws->fifo_len = 40; /* FIFO has 40 words buffer */
|
|
||||||
|
|
||||||
#ifdef CONFIG_SPI_DW_MID_DMA
|
#ifdef CONFIG_SPI_DW_MID_DMA
|
||||||
dws->dma_priv = kzalloc(sizeof(struct mid_dma), GFP_KERNEL);
|
dws->dma_priv = kzalloc(sizeof(struct mid_dma), GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in a new issue