[PATCH] MTD: LPC32xx MLC NAND driver
Roland Stigge
stigge at antcom.de
Wed May 16 01:56:32 EST 2012
On 05/15/2012 05:49 PM, Roland Stigge wrote:
>>> +
>>> + sg_init_one(&host->sgl, mem, len);
>>> +
>>> + res = dma_map_sg(host->dma_chan->device->dev, &host->sgl, 1, dir);
>>
>> Also note that dma transfer directions and dma data directions are
>> different things. You shouldn't mix the two.
Can I safely use DMA_BIDIRECTIONAL here (practically, it works - just
tested), because the caller asks for read _or_ write? Or do I need to
formally convert enum dma_transfer_direction to enum dma_data_direction?
Thanks in advance,
Roland
More information about the devicetree-discuss
mailing list