[media] v4l: vsp1: Use DFE instead of FRE for frame end
authorKieran Bingham <kieran+renesas@bingham.xyz>
Tue, 6 Sep 2016 09:55:02 +0000 (06:55 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 19 Sep 2016 17:51:58 +0000 (14:51 -0300)
The DFE and FRE interrupts are both fired at frame completion, as each
display list processes a single frame. This won't be true anymore when
using image partitioning, switch to DFE in preparation.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran+renesas@bingham.xyz>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_drv.c
drivers/media/platform/vsp1/vsp1_wpf.c

index 92418fc09511f6cab42755eec7f9fae442b19eea..57c713a4e1df7ed10722b6d1fb91eb1651e8a6ff 100644 (file)
@@ -60,7 +60,7 @@ static irqreturn_t vsp1_irq_handler(int irq, void *data)
                status = vsp1_read(vsp1, VI6_WPF_IRQ_STA(i));
                vsp1_write(vsp1, VI6_WPF_IRQ_STA(i), ~status & mask);
 
-               if (status & VI6_WFP_IRQ_STA_FRE) {
+               if (status & VI6_WFP_IRQ_STA_DFE) {
                        vsp1_pipeline_frame_end(wpf->pipe);
                        ret = IRQ_HANDLED;
                }
index 31983169c24a03bc50cdddcbe8e5c300313b2c23..748f5af90b7e4998320049ef31160b40e784d666 100644 (file)
@@ -318,7 +318,7 @@ static void wpf_configure(struct vsp1_entity *entity,
        /* Enable interrupts */
        vsp1_dl_list_write(dl, VI6_WPF_IRQ_STA(wpf->entity.index), 0);
        vsp1_dl_list_write(dl, VI6_WPF_IRQ_ENB(wpf->entity.index),
-                          VI6_WFP_IRQ_ENB_FREE);
+                          VI6_WFP_IRQ_ENB_DFEE);
 }
 
 static const struct vsp1_entity_operations wpf_entity_ops = {