Re: [PATCH 2/2] Add device_prep_dma_interrupt support to fsldma.c

From: Dan Williams
Date: Wed Mar 12 2008 - 12:38:57 EST


On Tue, Mar 11, 2008 at 7:28 PM, Zhang Wei <Wei.Zhang@xxxxxxxxxxxxx> wrote:
[..]
> But I have a question about device_prep_dma_interrupt(), which is no way to assign
> dest and src address. Is it a null tx action dma_async_tx_descriptor except to trigger
> an interrupt?
>

Yes, it is for sequences where we are scheduling a chain of operations
of indeterminate length and want a callback after they all complete.
See ops_run_biofill() in drivers/md/raid5.c for an example.

> Thanks!
> Wei.

--
Dan
--
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/