dmaengine: at_hdmac: pause: no need to wait for FIFO empty
commitde7a2f9f7b6f5b48d8531ff4c9c9b95cab8a8ce8
authorNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 9 May 2011 16:11:37 +0000 (9 18:11 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 12 May 2011 08:25:34 +0000 (12 13:55 +0530)
tree87aed80faacde3ecf9a84a3e57e9445626064fb1
parenteb8590b504caacb029dea4540e0b0dcc98da4381
dmaengine: at_hdmac: pause: no need to wait for FIFO empty

With the addition of the "pause" feature, an active wait was introduced
to check the "FIFO empty" event. This event was not always happening and
a timout contition was needed.
But, in some cases, this event depend on the peripheral connected to the
channel that is paused: FIFO becomes empty if the peripheral consumes data.
The timeout is pretty difficult to evaluate. Moreover, this check is not
needed.
In conclusion, it seems sensible to entirely remove the checking of
"FIFO empty" status when pausing.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
[commit msg edited for grammer]
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c