Re: [PATCH V2] dmaengine: mdc: Correct terminate_all handling

From: Vinod Koul
Date: Fri Dec 18 2015 - 00:42:52 EST


On Thu, Dec 10, 2015 at 03:07:23PM +0000, Damien Horsley wrote:
> From: "Damien.Horsley" <Damien.Horsley@xxxxxxxxxx>
>
> Use of the CANCEL bit in mdc_terminate_all creates an
> additional 'command done' to appear in the registers (in
> addition to an interrupt).
>
> In addition, there is a potential race between
> mdc_terminate_all and the irq handler if a transfer
> completes at the same time as the terminate all (presently
> this results in an inappropriate warning).
>
> To handle these issues, any outstanding 'command done'
> events are cleared during mdc_terminate_all and the irq
> handler takes no action when there are no new 'command done'
> events.

Applied, thanks

--
~Vinod
--
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/