mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Tested-by: Agustin Ferrin Pozuelo <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
4f005dbe55
commit
ad567ffb32
1 changed files with 2 additions and 1 deletions
|
|
@ -1272,7 +1272,8 @@ static irqreturn_t idmac_interrupt(int irq, void *dev_id)
|
|||
/* Other interrupts do not interfere with this channel */
|
||||
spin_lock(&ichan->lock);
|
||||
if (unlikely(chan_id != IDMAC_SDC_0 && chan_id != IDMAC_SDC_1 &&
|
||||
((curbuf >> chan_id) & 1) == ichan->active_buffer)) {
|
||||
((curbuf >> chan_id) & 1) == ichan->active_buffer &&
|
||||
!list_is_last(ichan->queue.next, &ichan->queue))) {
|
||||
int i = 100;
|
||||
|
||||
/* This doesn't help. See comment in ipu_disable_channel() */
|
||||
|
|
|
|||
Loading…
Reference in a new issue