Loading drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c +21 −13 Original line number Diff line number Diff line Loading @@ -589,17 +589,10 @@ int32_t cam_csiphy_config_dev(struct csiphy_device *csiphy_dev) return rc; } void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev) void cam_csiphy_clear_secbits(struct csiphy_device *csiphy_dev) { struct cam_hw_soc_info *soc_info; int32_t i = 0; if (csiphy_dev->csiphy_state == CAM_CSIPHY_INIT) return; if (csiphy_dev->csiphy_state == CAM_CSIPHY_START) { soc_info = &csiphy_dev->soc_info; for (i = 0; i < csiphy_dev->acquire_count; i++) { if (csiphy_dev->csiphy_info.secure_mode[i]) cam_csiphy_notify_secure_mode( Loading @@ -611,6 +604,21 @@ void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev) csiphy_dev->csiphy_cpas_cp_reg_mask[i] = 0; } } void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev) { struct cam_hw_soc_info *soc_info; if (csiphy_dev->csiphy_state == CAM_CSIPHY_INIT) return; /* * clear the secure bits if the provider crashed */ cam_csiphy_clear_secbits(csiphy_dev); if (csiphy_dev->csiphy_state == CAM_CSIPHY_START) { soc_info = &csiphy_dev->soc_info; cam_csiphy_reset(csiphy_dev); cam_soc_util_disable_platform_resource(soc_info, true, true); Loading Loading
drivers/cam_sensor_module/cam_csiphy/cam_csiphy_core.c +21 −13 Original line number Diff line number Diff line Loading @@ -589,17 +589,10 @@ int32_t cam_csiphy_config_dev(struct csiphy_device *csiphy_dev) return rc; } void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev) void cam_csiphy_clear_secbits(struct csiphy_device *csiphy_dev) { struct cam_hw_soc_info *soc_info; int32_t i = 0; if (csiphy_dev->csiphy_state == CAM_CSIPHY_INIT) return; if (csiphy_dev->csiphy_state == CAM_CSIPHY_START) { soc_info = &csiphy_dev->soc_info; for (i = 0; i < csiphy_dev->acquire_count; i++) { if (csiphy_dev->csiphy_info.secure_mode[i]) cam_csiphy_notify_secure_mode( Loading @@ -611,6 +604,21 @@ void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev) csiphy_dev->csiphy_cpas_cp_reg_mask[i] = 0; } } void cam_csiphy_shutdown(struct csiphy_device *csiphy_dev) { struct cam_hw_soc_info *soc_info; if (csiphy_dev->csiphy_state == CAM_CSIPHY_INIT) return; /* * clear the secure bits if the provider crashed */ cam_csiphy_clear_secbits(csiphy_dev); if (csiphy_dev->csiphy_state == CAM_CSIPHY_START) { soc_info = &csiphy_dev->soc_info; cam_csiphy_reset(csiphy_dev); cam_soc_util_disable_platform_resource(soc_info, true, true); Loading