media: rk-isp10: enable SYS_STATUS_ISP status

Change-Id: Ida81e6f029251a56baa32ee001bcb9c8bc9ca8f0
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
Hu Kejun
2018-12-26 16:15:17 +08:00
committed by Tao Huang
parent 8830cdabf0
commit 32a1aba091

View File

@@ -21,6 +21,8 @@
#include "cif_isp10.h"
#include <linux/pm_runtime.h>
#include <linux/vmalloc.h>
#include <dt-bindings/soc/rockchip-system-status.h>
#include <soc/rockchip/rockchip-system-status.h>
static int cif_isp10_mipi_isr(
unsigned int mis,
@@ -5712,9 +5714,13 @@ int cif_isp10_streamon(
if (IS_ERR_VALUE(ret))
goto err;
rockchip_set_system_status(SYS_STATUS_ISP);
ret = cif_isp10_start(dev, streamon_sp, streamon_mp);
if (IS_ERR_VALUE(ret))
if (IS_ERR_VALUE(ret)) {
rockchip_clear_system_status(SYS_STATUS_ISP);
goto err;
}
cif_isp10_pltfrm_pr_dbg(dev->dev,
"SP state = %s, MP state = %s, DMA state = %s\n",
@@ -5798,6 +5804,8 @@ int cif_isp10_streamoff(
if (streamoff_dma)
cif_isp10_stop_dma(dev);
rockchip_clear_system_status(SYS_STATUS_ISP);
cif_isp10_pltfrm_pr_dbg(dev->dev,
"SP state = %s, MP state = %s, DMA state = %s, # frames received = %d\n",
cif_isp10_state_string(dev->sp_stream.state),
@@ -5807,6 +5815,7 @@ int cif_isp10_streamoff(
return 0;
err:
rockchip_clear_system_status(SYS_STATUS_ISP);
cif_isp10_pltfrm_pr_dbg(dev->dev,
"SP state = %s, MP state = %s, DMA state = %s\n",
cif_isp10_state_string(dev->sp_stream.state),