clear-pkgs-linux-iot-lts2018/0968-media-Disable-CSI-EOF-...

33 lines
1.1 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Meng Wei <wei.meng@intel.com>
Date: Mon, 10 Dec 2018 11:09:11 +0800
Subject: [PATCH] media: Disable CSI EOF IRQ
Disabling CSI EOF IRQ to decrease 1 CPU wake up for every frame.
Change-Id: Ib2a9db7891bf6f760276bc5c5a342685f1a3f6d6
Tracked-On: PKT-1691
Signed-off-by: Hongyu Yi <hongyu.yi@intel.com>
Signed-off-by: Meng Wei <wei.meng@intel.com>
---
drivers/media/pci/intel/ipu-isys-video.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/media/pci/intel/ipu-isys-video.c b/drivers/media/pci/intel/ipu-isys-video.c
index d3815d3..d149354 100644
--- a/drivers/media/pci/intel/ipu-isys-video.c
+++ b/drivers/media/pci/intel/ipu-isys-video.c
@@ -1615,7 +1615,9 @@ int ipu_isys_video_set_streaming(struct ipu_isys_video *av,
if (ip->csi2) {
if (ip->csi2->stream_count == 1) {
v4l2_subdev_call(esd, video, s_stream, state);
+#if defined(CONFIG_VIDEO_INTEL_IPU4) || defined(CONFIG_VIDEO_INTEL_IPU4P)
ipu_isys_csi2_wait_last_eof(ip->csi2);
+#endif
}
} else {
v4l2_subdev_call(esd, video, s_stream, state);
--
2.21.0