From 9dc6ab65c24168019db9afa159aad948d3d60aab Mon Sep 17 00:00:00 2001 From: yunzhao Date: Thu, 27 Nov 2025 14:46:28 +0800 Subject: [PATCH] vi5:fix channel status inconsistency set chan->is_streaming status to vi5_channel_stop_streaming to prevent an error when restarting streaming next time after a failure. Bug 5318702 Change-Id: I129811f932e8fb99c60d82f4cb1846adb87e1b34 Signed-off-by: yunzhao Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3500460 GVS: buildbot_gerritrpt Reviewed-by: Bibek Basu Reviewed-by: Jackie Chen Reviewed-by: svcacv Reviewed-by: Anubhav Rai --- drivers/media/platform/tegra/camera/vi/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/tegra/camera/vi/channel.c b/drivers/media/platform/tegra/camera/vi/channel.c index e818f61e..37c5383f 100644 --- a/drivers/media/platform/tegra/camera/vi/channel.c +++ b/drivers/media/platform/tegra/camera/vi/channel.c @@ -1019,6 +1019,7 @@ static void tegra_channel_stop_streaming(struct vb2_queue *vq) if (vi->fops) { vi->fops->vi_stop_streaming(vq); + atomic_set(&chan->is_streaming, DISABLE); vi->fops->vi_power_off(chan); }