dmaengine: the purpouse of dma_async_tx_callback

From: Dragos Tatulea
Date: Mon Jun 22 2009 - 10:45:17 EST


Hi,

What is the purpouse of dma_async_tx_callback from
dma_async_tx_descriptor in the dma engine api context? It can be called
only from the engine side and I can't see the point in that.

At a first glance it looks like a way of notifying the dma clients of
the descriptor completion, but on closer inspection dma clients don't
have access to the dma_async_tx_descriptor structure, they only have
the cookie. It would be really useful to notify clients of operation
completion via this callback and I'd gladly provide a patch for that.

Thanks,
Dragos
--
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/