Re: [PATCH 7/8] dmaengine/dw_dmac: Unmap all memory buffers aftercompletion of slave transfers

From: Linus Walleij
Date: Thu Jan 19 2012 - 12:34:59 EST


On Tue, Jan 17, 2012 at 10:07 AM, Viresh Kumar <viresh.kumar@xxxxxx> wrote:

>> Why do you want to do this?
>
> This is because people can pass in flags which are
> DMA_COMPL_SKIP_SRC_UNMAP, etc.
>
> If they are not passed, then DMA driver must do it for them.

OK I see why it's confusing.

That flag is only for memcpy jobs.

Only memcpy jobs maps/unmaps buffers.

Slave transfers are mapped/unmapped by the driver.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/