di: fix post write crash for pps enabled in post
authorkele bai <kele.bai@amlogic.com>
Fri, 2 Mar 2018 11:48:07 +0000 (19:48 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 6 Mar 2018 04:21:41 +0000 (12:21 +0800)
PD#156734: di: fix post write crash for pps enabled in post

1) diable post wirte in post write done irq to avoid
   pps send data to fifo

Change-Id: I758be72a2fb2c17b731a7575f24a75bc44c5e816
Signed-off-by: kele bai <kele.bai@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 345a45b..b8f0683 100644 (file)
@@ -4109,6 +4109,8 @@ static irqreturn_t post_irq(int irq, void *dev_instance)
                                di_post_stru.post_wr_cnt,
                                di_post_stru.irq_time);
                DI_Wr(DI_INTR_CTRL, (data32&0xffff0004)|(intr_mode<<30));
+               /* disable wr back avoid pps sreay in g12a */
+               DI_Wr_reg_bits(DI_POST_CTRL, 0, 7, 1);
        }
 
        if (init_flag)