Commit b16e6448 authored by Arun Mankuzhi's avatar Arun Mankuzhi Committed by Mauro Carvalho Chehab

[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: default avatarArun Mankuzhi <arun.m@samsung.com>
Signed-off-by: default avatarKiran AVND <avnd.kiran@samsung.com>
Signed-off-by: default avatarArun Kumar K <arun.kk@samsung.com>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 773e6352
...@@ -159,6 +159,10 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work) ...@@ -159,6 +159,10 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work)
} }
clear_bit(0, &dev->hw_lock); clear_bit(0, &dev->hw_lock);
spin_unlock_irqrestore(&dev->irqlock, flags); spin_unlock_irqrestore(&dev->irqlock, flags);
/* De-init MFC */
s5p_mfc_deinit_hw(dev);
/* Double check if there is at least one instance running. /* Double check if there is at least one instance running.
* If no instance is in memory than no firmware should be present */ * If no instance is in memory than no firmware should be present */
if (dev->num_inst > 0) { if (dev->num_inst > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment