dma: fix ipu_idmac.c to not discard the last queued buffer
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 12 May 2009 07:16:29 +0000 (09:16 +0200)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 May 2009 21:41:48 +0000 (14:41 -0700)
commitad567ffb32f067b30606071eb568cf637fe42185
tree0913e4e6cc06dd59a5a8a2367d30a2e46fad649f
parent4f005dbe5584fe54c9f6d6d4f0acd3fb29be84da
dma: fix ipu_idmac.c to not discard the last queued buffer

This also fixes the case of a single queued buffer, for example, when taking a
single frame snapshot with the mx3_camera driver.

Reported-by: Agustin Ferrin Pozuelo <gatoguan-os@yahoo.com>
Tested-by: Agustin Ferrin Pozuelo <gatoguan-os@yahoo.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ipu/ipu_idmac.c