From: Arun Mankuzhi Date: Tue, 21 Oct 2014 11:07:03 +0000 (-0300) Subject: [media] s5p-mfc: De-init MFC when watchdog kicks in X-Git-Tag: firefly_0821_release~176^2~2474^2~364 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b16e64482dd2346f7fc68ec4150bb1ddf1f988e6;p=firefly-linux-kernel-4.4.55.git [media] s5p-mfc: De-init MFC when watchdog kicks in If the software watchdog kicks in, we need to de-init MFC before reloading firmware and re-intializing it again. Signed-off-by: Arun Mankuzhi Signed-off-by: Kiran AVND Signed-off-by: Arun Kumar K Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 8620236200b7..39f8f2af39da 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -159,6 +159,10 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work) } clear_bit(0, &dev->hw_lock); spin_unlock_irqrestore(&dev->irqlock, flags); + + /* De-init MFC */ + s5p_mfc_deinit_hw(dev); + /* Double check if there is at least one instance running. * If no instance is in memory than no firmware should be present */ if (dev->num_inst > 0) {