mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Add a new sysfs interface that allows toggling camera diagnostics on and off at runtime without deallocating memory resources. This enhances the camera-diagnostics driver functionality by: - Adding a new 'control' sysfs attribute for starting/stopping diagnostics - Implementing intelligent state checking to avoid unnecessary operations - Providing better user feedback about the current diagnostic state - Preserving allocated memory between stop/start cycles The implementation checks if diagnostics are already running or already stopped before attempting state changes, preventing redundant operations and providing informative messages to users. This allows us to run isp-falcon-memtest, which conflicts with camera-diagnostics driver. Jira CAMERASW-32042 Change-Id: I67d0e7e15a25cf000554d1c222b2890be1adce4a Signed-off-by: Mohit Ingale <mohiti@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3330307 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com> Reviewed-by: Vincent Chung <vincentc@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com>