[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140910114530.GD7960@sirena.org.uk>
Date: Wed, 10 Sep 2014 12:45:30 +0100
From: Mark Brown <broonie@...nel.org>
To: Robin Gong <b38343@...escale.com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org, marex@...x.de, shawn.guo@...aro.org,
Frank.Li@...escale.com
Subject: Re: [PATCH v5] spi: spi-imx: add DMA support
On Wed, Sep 10, 2014 at 07:22:59PM +0800, Robin Gong wrote:
> On Wed, Sep 10, 2014 at 11:21:05AM +0100, Mark Brown wrote:
> > This isn't going to work, anything that looks at the usedma flag will
> > see the result of the last thing that was checked which may or may not
> > be the transfer that it's handling. The driver should check to see if
> > the core mapped the transfer for DMA.
> Yes, you're right. I should use "transfer->tx_sg->sgl == NULL" or
> "transfer->rx_sg->sgl == NULL" instead of usedma flag in driver, right?
Right.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists