linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] patch set about the MXS-DMA
@ 2012-01-20  7:33 Huang Shijie
  2012-01-20  7:33 ` [PATCH v2 1/2] mxs-dma : move the mxs dma.h to a more common place Huang Shijie
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Huang Shijie @ 2012-01-20  7:33 UTC (permalink / raw)
  To: vinod.koul
  Cc: shawn.guo, artem.bityutskiy, shijie8, linux-arm-kernel,
	linux-mtd, linux-mmc, linux-kernel, w.sang, LW, alsa-devel,
	b29396, Huang Shijie

patch 1: move the mxs dma header to a more common place.
	Beside the mx23/mx28, the apbh-dma is also used by MX50 and MX6Q.
	So move the mxs dma header file to a more common place, and rename
	it to mxs-dma.h

patch 2: rewrite the last parameter of mxs_dma_prep_slave_sg().
	In the new GPMI version, some hardware behavior changes.
	The WAIT4END bit should be set in the middle one of the ECC READ page DMA chain.
	The DMA chain should be set like this:

          +-----+               +-----+                      +-----+
          | cmd | ------------> | cmd | ------------------>  | cmd |
          +-----+               +-----+                      +-----+
                                   ^                            ^
                                   |                            |
                                   |                            |
                              set WAIT4END here too        set WAIT4END here

        So rewrite the last parameter of mxs_dma_prep_slave_sg(), use the
	dma_ctrl_flags to set the proper DMA bit for DMA Command Structure.
	And change the relative drivers with the dma_ctrl_flags.

TEST:
	Tested the mxs-mmc driver and gpmi-nand drive with the two patches
	in MX28 board.

v1 --> v2:
	[1] squash the trial patches into single patch.
	[2] use the dma_ctrl_flags.

Huang Shijie (2):
  mxs-dma : move the mxs dma.h to a more common place
  mxs-dma : rewrite the last parameter of mxs_dma_prep_slave_sg()

 drivers/dma/mxs-dma.c                              |   34 +++++++++++++++++---
 drivers/mmc/host/mxs-mmc.c                         |   12 +++---
 drivers/mtd/nand/gpmi-nand/gpmi-lib.c              |   28 +++++++++++++---
 drivers/mtd/nand/gpmi-nand/gpmi-nand.h             |    6 +++-
 drivers/mtd/nand/gpmi-nand/gpmi-regs.h             |    2 +
 .../include/mach/dma.h => include/linux/mxs-dma.h  |    0
 sound/soc/mxs/mxs-pcm.c                            |    2 +-
 sound/soc/mxs/mxs-pcm.h                            |    2 +-
 sound/soc/mxs/mxs-saif.c                           |    2 +-
 9 files changed, 67 insertions(+), 21 deletions(-)
 rename arch/arm/mach-mxs/include/mach/dma.h => include/linux/mxs-dma.h (100%)

-- 
1.7.3.2



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

end of thread, other threads:[~2012-02-03  1:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-20  7:33 [PATCH v2 0/2] patch set about the MXS-DMA Huang Shijie
2012-01-20  7:33 ` [PATCH v2 1/2] mxs-dma : move the mxs dma.h to a more common place Huang Shijie
2012-01-20  7:33 ` [PATCH v2 2/2] mxs-dma : rewrite the last parameter of mxs_dma_prep_slave_sg() Huang Shijie
2012-02-03  1:57   ` Huang Shijie
2012-02-01  2:21 ` [PATCH v2 0/2] patch set about the MXS-DMA Huang Shijie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).