MLK-19957-1: ISI: clean isi status before enable interrupt
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Wed, 17 Oct 2018 02:16:08 +0000 (10:16 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Because ISI can't restore to default state after software
reset, the status value of exit will be maintained. If not
cleared, ISI will triggle fake interrupt after enableing irq,
but there is not ready for data.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 932af3df1745f5afb0b9433d3355b2e24b177f4e)

drivers/media/platform/imx8/mxc-isi-core.c

index ed7a420..79ffd7a 100644 (file)
@@ -111,13 +111,6 @@ static int mxc_isi_parse_dt(struct mxc_isi_dev *mxc_isi)
        return 0;
 }
 
-static void mxc_isi_clean_registers(struct mxc_isi_dev *mxc_isi)
-{
-       u32 status;
-
-       status = mxc_isi_get_irq_status(mxc_isi);
-       mxc_isi_clean_irq_status(mxc_isi, status);
-}
 
 static int mxc_isi_probe(struct platform_device *pdev)
 {