public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Writing to NAND using DMA
@ 2008-11-05 11:19 Gaurav Singh
  2008-11-10 14:05 ` Ben Dooks
  0 siblings, 1 reply; 2+ messages in thread
From: Gaurav Singh @ 2008-11-05 11:19 UTC (permalink / raw)
  To: linux-mtd

I am working on an ST Nomadik board with ST 1 GB NAND chip. Have
written a board specific driver and trying to use DMA and JFFS2
filesystem to write data to the NAND .

I have allocated a nand_buffer structure using dma_alloc_coherent and
am using this buffer for reading data.

In case of write however I see that the JFFS2 filesystem has allocated
a wbuf for writing (using kmalloc). Now I have an option of copying
this buffer into a dma able buffer of my own but I feel there should
be a better solution.

What is your view ? Should JFFS2 provide a dma able buffer to write a
NAND page ?

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

end of thread, other threads:[~2008-11-10 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05 11:19 Writing to NAND using DMA Gaurav Singh
2008-11-10 14:05 ` Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox