summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAniket Bahadarpurkar <aniketb@nvidia.com>2021-03-05 06:57:16 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2021-03-16 16:10:02 -0400
commitf410efb41aa5f67c410656338fb46d83fcadfbbf (patch)
treef6f3b7b24c90cd2dc87abb690931a7e40d7017b1 /include
parentf8232fe50389cdb3185f68a445a61f95ec114304 (diff)
tegra: camera: Add nvcsi open close check
This change ensures that a given VI channel can open or close CSI interface only once. If there are multiple open or close request on the same VI channel, driver returns success but does not forward request to RCE. Bug 3158738 Change-Id: I64d2b182664122d2210c7a9087fabd944d0c6353 Signed-off-by: Aniket Bahadarpurkar <aniketb@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2494100 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Nitin Pai <npai@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/media/capture_vi_channel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/capture_vi_channel.h b/include/media/capture_vi_channel.h
index 34c2a10db..3ea25f935 100644
--- a/include/media/capture_vi_channel.h
+++ b/include/media/capture_vi_channel.h
@@ -3,7 +3,7 @@
3 * 3 *
4 * VI channel driver header 4 * VI channel driver header
5 * 5 *
6 * Copyright (c) 2017-2018 NVIDIA Corporation. All rights reserved. 6 * Copyright (c) 2017-2021 NVIDIA Corporation. All rights reserved.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify it 8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License, 9 * under the terms and conditions of the GNU General Public License,
@@ -47,6 +47,7 @@ struct tegra_vi_channel {
47 struct vi_capture *capture_data; 47 struct vi_capture *capture_data;
48 const struct vi_channel_drv_ops *ops; 48 const struct vi_channel_drv_ops *ops;
49 struct device *rtcpu_dev; 49 struct device *rtcpu_dev;
50 bool is_stream_open;
50}; 51};
51 52
52int vi_channel_drv_register(struct platform_device *, 53int vi_channel_drv_register(struct platform_device *,