From 477ba003e2028a1f4d78ac4b7384540a6725d562 Mon Sep 17 00:00:00 2001 From: Hu Kejun Date: Mon, 2 Jul 2018 09:20:53 +0800 Subject: [PATCH] media: rockchip: isp: enable SYS_STATUS_ISP status Change-Id: I6aba3566fa3ee6e5686998ba6970010609b603a3 Signed-off-by: Hu Kejun --- drivers/media/platform/rockchip/isp1/dev.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/rockchip/isp1/dev.c b/drivers/media/platform/rockchip/isp1/dev.c index 0fa9723be0be..c88534ef2a92 100644 --- a/drivers/media/platform/rockchip/isp1/dev.c +++ b/drivers/media/platform/rockchip/isp1/dev.c @@ -42,6 +42,8 @@ #include #include #include +#include +#include #include "regs.h" #include "rkisp1.h" #include "common.h" @@ -187,8 +189,10 @@ static int rkisp1_pipeline_set_stream(struct rkisp1_pipeline *p, bool on) (!on && atomic_dec_return(&p->stream_cnt) > 0)) return 0; - if (on) + if (on) { + rockchip_set_system_status(SYS_STATUS_ISP); v4l2_subdev_call(&dev->isp_sdev.sd, video, s_stream, true); + } /* phy -> sensor */ for (i = 0; i < p->num_subdevs; ++i) { @@ -197,8 +201,10 @@ static int rkisp1_pipeline_set_stream(struct rkisp1_pipeline *p, bool on) goto err_stream_off; } - if (!on) + if (!on) { v4l2_subdev_call(&dev->isp_sdev.sd, video, s_stream, false); + rockchip_clear_system_status(SYS_STATUS_ISP); + } return 0; @@ -206,6 +212,7 @@ err_stream_off: for (--i; i >= 0; --i) v4l2_subdev_call(p->subdevs[i], video, s_stream, false); v4l2_subdev_call(&dev->isp_sdev.sd, video, s_stream, false); + rockchip_clear_system_status(SYS_STATUS_ISP); return ret; }