Delete the resetting hardware flow in suspend and resume function because that resetting operation will be done in device_run(). Signed-off-by: Xia Jiang <xia.jiang@xxxxxxxxxxxx> --- v9: new patch --- check.txt | 13 +++++++++++++ drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 2 -- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 check.txt diff --git a/check.txt b/check.txt new file mode 100644 index 000000000000..aed39e5f62f2 --- /dev/null +++ b/check.txt @@ -0,0 +1,13 @@ +WARNING:LONG_LINE: line over 80 characters +#820: FILE: ./drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c:820: ++ if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param, &dst_buf->vb2_buf, &fb)) + +total: 0 errors, 1 warnings, 1271 lines checked + +NOTE: For some of the reported defects, checkpatch may be able to + mechanically convert to the typical style using --fix or --fix-inplace. + +./drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c has style problems, please review. + +NOTE: If any of the errors are false positives, please report + them to the maintainer, see CHECKPATCH in MAINTAINERS. diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c index fb624385969e..7f74597262fc 100644 --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c @@ -1191,7 +1191,6 @@ static __maybe_unused int mtk_jpeg_pm_suspend(struct device *dev) { struct mtk_jpeg_dev *jpeg = dev_get_drvdata(dev); - mtk_jpeg_dec_reset(jpeg->dec_reg_base); mtk_jpeg_clk_off(jpeg); return 0; @@ -1202,7 +1201,6 @@ static __maybe_unused int mtk_jpeg_pm_resume(struct device *dev) struct mtk_jpeg_dev *jpeg = dev_get_drvdata(dev); mtk_jpeg_clk_on(jpeg); - mtk_jpeg_dec_reset(jpeg->dec_reg_base); return 0; } -- 2.18.0