forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
....@@ -468,8 +468,10 @@
468468 s5p_mfc_hw_call(dev->mfc_ops, try_run, dev);
469469 /* Wait until instance is returned or timeout occurred */
470470 if (s5p_mfc_wait_for_done_ctx(ctx,
471
- S5P_MFC_R2H_CMD_CLOSE_INSTANCE_RET, 0))
471
+ S5P_MFC_R2H_CMD_CLOSE_INSTANCE_RET, 0)){
472
+ clear_work_bit_irqsave(ctx);
472473 mfc_err("Err returning instance\n");
474
+ }
473475
474476 /* Free resources */
475477 s5p_mfc_hw_call(dev->mfc_ops, release_codec_buffers, ctx);