msm: camera: csiphy: Handle process shutdown during secure camera

Use SCM 7 call during the process shutdown. This is to
workaround a race condition between the close of camera FD
and the invoke driver FD that leads to a device crash.
Additionally, keep the Domain ID clocks on only during
protect or unprotect operations.

CRs-Fixed: 3509086
Change-Id: Ic091aa737df10bb2b41190c2f850c31fd17af9b2
Signed-off-by: Vijay Kumar Tumati <quic_vtumati@quicinc.com>
This commit is contained in:
Vijay Kumar Tumati
2023-05-17 15:39:12 -07:00
committed by Camera Software Integration
parent ebaa2a7356
commit 16be1306ef
3 changed files with 58 additions and 45 deletions

View File

@@ -66,7 +66,7 @@ int cam_ife_notify_safe_lut_scm(bool safe_trigger);
int camera_component_match_add_drivers(struct device *master_dev,
struct component_match **match_list);
int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
bool protect, int32_t offset);
bool protect, int32_t offset, bool is_shutdown);
bool cam_is_mink_api_available(void);
void cam_free_clear(const void *);
void cam_check_iommu_faults(struct iommu_domain *domain,