sh: guard cookie consistency across termination in the DMA driver
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 21 May 2010 15:30:12 +0000 (15:30 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 22 May 2010 08:06:35 +0000 (17:06 +0900)
commit9255f1deec151ac0e84871d06bc27406cb81f26f
treeb4e454e2339207a1ce3bbe826f624c1f80323487
parent7a5c106a0e8fd03a806d0da77eef10b4045c43a6
sh: guard cookie consistency across termination in the DMA driver

If all descriptors on a channel are terminated or the channel is released,
update the completed cookie counter to match the last cookie. This prevents
inconsistency warning on resumed DMA operation.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/dma/shdma.c