[media] marvell-cam: Don't signal multiple frame completions in scatter/gather mode
[deliverable/linux.git] / drivers / media / video / marvell-ccic / mcam-core.c
index e46a72af63c40c81c701752c9e2cd153c18ae5e8..036db274640734e604c0d10029e352b4b055ccb1 100644 (file)
@@ -1697,6 +1697,8 @@ int mccic_irq(struct mcam_camera *cam, unsigned int irqs)
                if (irqs & (IRQ_EOF0 << frame)) {
                        mcam_frame_complete(cam, frame);
                        handled = 1;
+                       if (cam->buffer_mode == B_DMA_sg)
+                               break;
                }
        /*
         * If a frame starts, note that we have DMA active.  This
This page took 0.024692 seconds and 5 git commands to generate.