Re: [PATCH V3 4/7] dmaengine/dw_dmac: Enable resubmission fromcallback routine.

From: Russell King - ARM Linux
Date: Thu Apr 28 2011 - 13:12:46 EST


On Wed, Apr 27, 2011 at 03:06:46PM +0530, Viresh Kumar wrote:
> static void
> dwc_descriptor_complete(struct dw_dma_chan *dwc, struct dw_desc *desc,
> - bool callback_required)
> + bool callback_required, unsigned long flags)
> {
...
> if (callback_required) {
> + spin_unlock_irqrestore(&dwc->lock, flags);
> if (callback)
> callback(param);
> + spin_lock_irqsave(&dwc->lock, flags);

Again, this isn't really on. It seems to me that this code needs some
serious reworking.
--
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/