Skip to content

Commit a896652

Browse files
mszyprowgregkh
authored andcommitted
s5p-mfc: Fix unbalanced call to clock management
commit a5cb00eb4223458250b55daf03ac7ea5f424d601 upstream. 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: af93574 ("[media] MFC: Add MFC 5.1 V4L2 driver") Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fc9753a commit a896652

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/media/platform/s5p-mfc/s5p_mfc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work)
173173
}
174174
s5p_mfc_clock_on();
175175
ret = s5p_mfc_init_hw(dev);
176+
s5p_mfc_clock_off();
176177
if (ret)
177178
mfc_err("Failed to reinit FW\n");
178179
}

0 commit comments

Comments
 (0)