]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
[media] s5p-mfc: Fix unbalanced call to clock management
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 22 Mar 2017 07:53:57 +0000 (04:53 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 5 Apr 2017 19:35:56 +0000 (16:35 -0300)
Clock should be turned off after calling s5p_mfc_init_hw() from the
watchdog worker, like it is already done in the s5p_mfc_open() which also
calls this function.

Fixes: af93574678108 ("[media] MFC: Add MFC 5.1 V4L2 driver")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: stable@vger.kernel.org # v3.7+
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index 5f8cee185f6f02150e84753d47acb7e321a79463..1afde5021ca6613ac096e07263b94367a26a6c8c 100644 (file)
@@ -211,6 +211,7 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work)
                }
                s5p_mfc_clock_on();
                ret = s5p_mfc_init_hw(dev);
+               s5p_mfc_clock_off();
                if (ret)
                        mfc_err("Failed to reinit FW\n");
        }