All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] spi: dw-mid: fix FIFO size
@ 2015-01-02 15:48 Andy Shevchenko
       [not found] ` <1420213732-5141-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2015-01-02 15:48 UTC (permalink / raw)
  To: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
  Cc: Andy Shevchenko, stable-u79uwXL29TY76Z2rM5mHXA

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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
 drivers/spi/spi-dw-mid.c | 1 -
 1 file changed, 1 deletion(-)

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);
-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] spi: dw-mid: fix number of CS lines
       [not found] ` <1420213732-5141-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2015-01-02 15:48   ` Andy Shevchenko
  2015-01-05 20:33     ` Mark Brown
  2015-01-05 20:22   ` [PATCH v2 1/2] spi: dw-mid: fix FIFO size Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2015-01-02 15:48 UTC (permalink / raw)
  To: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
  Cc: Andy Shevchenko, stable-u79uwXL29TY76Z2rM5mHXA

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)
Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
 drivers/spi/spi-dw-mid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c
index a67d37c..bd72ec6 100644
--- a/drivers/spi/spi-dw-mid.c
+++ b/drivers/spi/spi-dw-mid.c
@@ -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);
-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/2] spi: dw-mid: fix FIFO size
       [not found] ` <1420213732-5141-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
  2015-01-02 15:48   ` [PATCH v2 2/2] spi: dw-mid: fix number of CS lines Andy Shevchenko
@ 2015-01-05 20:22   ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2015-01-05 20:22 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, stable-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

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.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 2/2] spi: dw-mid: fix number of CS lines
  2015-01-02 15:48   ` [PATCH v2 2/2] spi: dw-mid: fix number of CS lines Andy Shevchenko
@ 2015-01-05 20:33     ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2015-01-05 20:33 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-spi, stable

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

On Fri, Jan 02, 2015 at 05:48:52PM +0200, Andy Shevchenko wrote:
> 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)
> Cc: stable@vger.kernel.org
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

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.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-05 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-02 15:48 [PATCH v2 1/2] spi: dw-mid: fix FIFO size Andy Shevchenko
     [not found] ` <1420213732-5141-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-01-02 15:48   ` [PATCH v2 2/2] spi: dw-mid: fix number of CS lines Andy Shevchenko
2015-01-05 20:33     ` Mark Brown
2015-01-05 20:22   ` [PATCH v2 1/2] spi: dw-mid: fix FIFO size Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.