aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSowjanya Komatineni <skomatineni@nvidia.com>2020-11-11 18:45:05 -0800
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-11-12 12:58:48 +0100
commit71784f104c1dfcfe9345d1756b381d7b42f22c43 (patch)
tree7aef0b1f622a7c4cd19cc27f35156ce8a3d0cfcf
parent916457fdaf24b8d2a52112edb949bf67654b96e4 (diff)
media: tegra-video: Disable VI channel data to memory during error recovery
This patch disables VI channel data to memory write before issuing software reset during error recovery. During error recovery need to disable VI channel data to memory write to stop any outstanding channel data writes to memory before issuing software reset as software reset also resets memory client interface. Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--drivers/staging/media/tegra-video/tegra210.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/media/tegra-video/tegra210.c b/drivers/staging/media/tegra-video/tegra210.c
index 063d0a33bf71..e540b44bf0de 100644
--- a/drivers/staging/media/tegra-video/tegra210.c
+++ b/drivers/staging/media/tegra-video/tegra210.c
@@ -255,6 +255,8 @@ static void tegra_channel_capture_error_recover(struct tegra_vi_channel *chan,
"TEGRA_VI_CFG_VI_INCR_SYNCPT_ERROR 0x%08x\n", val);
tegra_vi_write(chan, TEGRA_VI_CFG_VI_INCR_SYNCPT_ERROR, val);
+ /* disable VI channel data to memory write */
+ vi_csi_write(chan, portno, TEGRA_VI_CSI_IMAGE_DEF, 0);
/* recover VI by issuing software reset and re-setup for capture */
tegra_channel_vi_soft_reset(chan, portno);
tegra_channel_capture_setup(chan, portno);

Privacy Policy