[COMMON] media: mfc: remove debug mode when "But error"
authorSunyoung Kang <sy0816.kang@samsung.com>
Thu, 12 Jul 2018 02:09:19 +0000 (11:09 +0900)
committerJungi Lee <jungilsi.lee@samsung.com>
Tue, 17 Jul 2018 11:09:07 +0000 (20:09 +0900)
If the result has error in s5p_mfc_wait_for_done_ctx()  the debug mode
generates panic. If there is an error stream, panic will always occur.
So this removes the debug mode in that case.

Change-Id: I89b124fdb41ca8fe7ca16cc9cd7d3251011242d7
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/s5p_mfc_sync.c

index 762bfb8597c7b4111cb8ad146ec7b3852e2056d0..9864d534485b19ad8483d126c7a624b5d355752e 100644 (file)
@@ -119,7 +119,6 @@ wait_done:
                mfc_err_ctx("Finished (ctx->int_reason:%d, command: %d).\n",
                                ctx->int_reason, command);
                mfc_err_ctx("But error (ctx->int_err:%d).\n", ctx->int_err);
-               call_dop(dev, dump_and_stop_debug_mode, dev);
                return -1;
        }