msm: camera: csiphy: Fix misc seccam integration issues

The current secure camera implementation suffers with a few
issues in terms of typecasting, error handling and in
populating the information in the right data structures when
the new SCM API is used on the targets without domain ID support.
In addition, we needed to be explicit in failing to acquire
if dual IFE is required in secure camera use cases as it is
not a supported feature as of now.

CRs-Fixed: 3317248
Change-Id: Idb762158b0ff0e0a0d6d51de4770fc3d9d9072c8
Signed-off-by: Vijay Kumar Tumati <quic_vtumati@quicinc.com>
Dieser Commit ist enthalten in:
Vijay Kumar Tumati
2023-01-18 19:17:47 -08:00
committet von Camera Software Integration
Ursprung 0c5599492f
Commit bae0381f76
7 geänderte Dateien mit 24 neuen und 10 gelöschten Zeilen

Datei anzeigen

@@ -272,6 +272,14 @@ void cam_free_clear(const void * ptr)
}
#endif
bool cam_is_mink_api_available(void)
{
#if KERNEL_VERSION(6, 0, 0) <= LINUX_VERSION_CODE
return true;
#else
return false;
#endif
}
#if KERNEL_VERSION(6, 0, 0) <= LINUX_VERSION_CODE
int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
bool protect, int32_t offset)