linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] pxa3xx: Data buffer dynamic allocation
@ 2013-10-04 18:30 Ezequiel Garcia
  2013-10-04 18:30 ` [PATCH 1/2] mtd: nand: pxa3xx: Move DMA I/O enabling Ezequiel Garcia
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ezequiel Garcia @ 2013-10-04 18:30 UTC (permalink / raw)
  To: linux-mtd, Daniel Mack
  Cc: Thomas Petazzoni, Lior Amsalem, Tawfik Bayouk, Ezequiel Garcia,
	Gregory Clement, Brian Norris

As part of my work to support the NAND controllers in Armada 370/XP SoC
here's a tiny set of patches to replace the currently data buffer allocation
based in a hardcoded buffer size, into a dynamic scheme.

We first use kmalloc to request a 256 bytes (big enough for the ONFI paramater
page) and then re-allocate (either with kmalloc or using DMA allocators) using
the detected page size.

The first patch is required to perform the initial NAND operations (READID
and friends) using programmable I/O since the DMA buffers are not ready
at such early stage.

The second patch performs to actual dynamic allocation and it's exactly
the same patch I sent a few weeks ago:

  http://patchwork.ozlabs.org/patch/275982/

Daniel: Can you test these two If they look fine we can add them now,
being an improvement to the driver pxa3xx beyond the Armada 370/XP effort.

Thanks!

Ezequiel Garcia (2):
  mtd: nand: pxa3xx: Move DMA I/O enabling
  mtd: nand: pxa3xx: Allocate data buffer on detected flash size

 drivers/mtd/nand/pxa3xx_nand.c | 51 +++++++++++++++++++++++++++++-------------
 1 file changed, 35 insertions(+), 16 deletions(-)

-- 
1.8.1.5

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

end of thread, other threads:[~2013-10-16 11:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-04 18:30 [PATCH 0/2] pxa3xx: Data buffer dynamic allocation Ezequiel Garcia
2013-10-04 18:30 ` [PATCH 1/2] mtd: nand: pxa3xx: Move DMA I/O enabling Ezequiel Garcia
2013-10-04 18:30 ` [PATCH 2/2] mtd: nand: pxa3xx: Allocate data buffer on detected flash size Ezequiel Garcia
2013-10-15 19:41   ` Brian Norris
2013-10-16 10:25     ` Ezequiel Garcia
2013-10-09 11:48 ` [PATCH 0/2] pxa3xx: Data buffer dynamic allocation Ezequiel Garcia
2013-10-09 12:00   ` Daniel Mack
2013-10-09 14:03     ` Ezequiel Garcia
2013-10-15 18:29       ` Ezequiel Garcia
2013-10-15 19:16         ` Brian Norris
2013-10-15 20:47 ` Brian Norris
2013-10-16 11:05   ` Ezequiel Garcia

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).