[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140627105057.GF23300@sirena.org.uk>
Date: Fri, 27 Jun 2014 11:50:57 +0100
From: Mark Brown <broonie@...nel.org>
To: Andy Gross <agross@...eaurora.org>
Cc: linux-spi@...r.kernel.org, Sagar Dharia <sdharia@...eaurora.org>,
Daniel Sneddon <dsneddon@...eaurora.org>,
Bjorn Andersson <bjorn.andersson@...ymobile.com>,
"Ivan T. Ivanov" <iivanov@...sol.com>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH] spi: qup: Add DMA capabilities
On Thu, Jun 26, 2014 at 04:06:21PM -0500, Andy Gross wrote:
> + if (xfer->rx_buf) {
> + rx_dma = dma_map_single(controller->dev, xfer->rx_buf,
> + xfer->len, DMA_FROM_DEVICE);
It would be better to use the core DMA mapping code rather than open
coding. This code won't work for vmalloc()ed addresses, or physically
non-contiguous addresses unless there's an IOMMU fixing things up.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists