[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100309.012935.98310472.davem@davemloft.net>
Date: Tue, 09 Mar 2010 01:29:35 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: linux@....linux.org.uk
Cc: mkl0301@...il.com, thomas@...ller.dyndns.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: DMA using data buffer vmapped in kernel space
From: Russell King - ARM Linux <linux@....linux.org.uk>
Date: Tue, 9 Mar 2010 09:14:03 +0000
> What you could do is prepare a patch to allow the firmware support to
> export a scatterlist via the struct firmware, and then use that with
> dma_map_sg(). Let's hope that the SPI interfaces support scatterlists.
It's so common to want a scatterlist from a vmalloc/vmap area
that a generic common helper is probably the best.
Just iterate over the vmalloc/vmap area using vmalloc_to_page()
to fill in the SG entries.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists