All of lore.kernel.org
 help / color / mirror / Atom feed
* + pxa2xx_spi-set-spi_masterdma_alignment-=-8.patch added to -mm tree
@ 2009-02-24 20:40 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-02-24 20:40 UTC (permalink / raw)
  To: mm-commits; +Cc: mike, bryan.wu, david-b


The patch titled
     pxa2xx_spi: set spi_master.dma_alignment = 8
has been added to the -mm tree.  Its filename is
     pxa2xx_spi-set-spi_masterdma_alignment-=-8.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: pxa2xx_spi: set spi_master.dma_alignment = 8
From: Mike Rapoport <mike@compulab.co.il>

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Cc: Bryan Wu <bryan.wu@analog.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/spi/pxa2xx_spi.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN drivers/spi/pxa2xx_spi.c~pxa2xx_spi-set-spi_masterdma_alignment-=-8 drivers/spi/pxa2xx_spi.c
--- a/drivers/spi/pxa2xx_spi.c~pxa2xx_spi-set-spi_masterdma_alignment-=-8
+++ a/drivers/spi/pxa2xx_spi.c
@@ -54,6 +54,7 @@ MODULE_ALIAS("platform:pxa2xx-spi");
 #define RESET_DMA_CHANNEL	(DCSR_NODESC | DMA_INT_MASK)
 #define IS_DMA_ALIGNED(x)	((((u32)(x)) & 0x07) == 0)
 #define MAX_DMA_LEN		8191
+#define DMA_ALIGNMENT		8
 
 /*
  * for testing SSCR1 changes that require SSP restart, basically
@@ -1498,6 +1499,7 @@ static int __init pxa2xx_spi_probe(struc
 
 	master->bus_num = pdev->id;
 	master->num_chipselect = platform_info->num_chipselect;
+	master->dma_alignment = DMA_ALIGNMENT;
 	master->cleanup = cleanup;
 	master->setup = setup;
 	master->transfer = transfer;
_

Patches currently in -mm which might be from mike@compulab.co.il are

linux-next.patch
spi_bfin5xx-remove-unused-is_dma_aligned-macro.patch
spi-add-dma_alignment-field-to-spi_master.patch
pxa2xx_spi-set-spi_masterdma_alignment-=-8.patch
spi_imx-set-spi_masterdma_alignment-=-4.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-24 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 20:40 + pxa2xx_spi-set-spi_masterdma_alignment-=-8.patch added to -mm tree akpm

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.