spi: dw-mid: fix FIFO size
PATCH v2 1/2 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.
--- drivers/spi/spi-dw-mid.c | 1 - 1 file changed, 1 deletion(-)
drivers/spi/spi-dw-mid.c +0 -1
@@ -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 );
Signature · 6 lines
2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1420213732-5141-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/[email protected]
PATCH v2 2/2 spi: dw-mid: fix number of CS lines
According to specification the SPI1 has 5 bits for chip selects. The current code limits it to 4 bits. The patch fixes that constant.
--- drivers/spi/spi-dw-mid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-dw-mid.c +1 -1
@@ -270,7 +270,7 @@ int dw_spi_mid_init(struct dw_spi *dws) dws->max_freq =MRST_SPI_CLK_BASE / (clk_cdiv +1 );iounmap (clk_reg); - dws->num_cs =16 ; + dws->num_cs =32 ;#ifdef CONFIG_SPI_DW_MID_DMA dws->dma_priv =kzalloc (sizeof (struct mid_dma ),GFP_KERNEL );
Signature · 6 lines
2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
maintainerRe: [PATCH v2 2/2] spi: dw-mid: fix number of CS lines
Quoted 6 lines · Andy Shevchenko
According to specification the SPI1 has 5 bits for chip selects. The current code limits it to 4 bits. The patch fixes that constant.
Fixes 7063c0d942a1 (spi/dw_spi: add DMA support)Signed-off-by Andy Shevchenko <[email protected]>
I'm not seeing this as an obvious candidate for stable, it seems more like a new feature really in terms of impact, and that doesn't look like the commit that's being fixed - it's the last one that refactored things but that's not the same thing.
Mark Brown
AppliedQuoted 3 lines · Andy Shevchenko
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.