mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "msm: camera: req_mgr: Fix deadlock in ICP driver in close sequence" into camera-kernel.lnx.4.0
This commit is contained in:
commit
e182f855ab
7 changed files with 8 additions and 8 deletions
|
|
@ -107,8 +107,8 @@ int cam_icp_subdev_close_internal(struct v4l2_subdev *sd,
|
|||
|
||||
mutex_lock(&g_icp_dev.icp_lock);
|
||||
if (g_icp_dev.open_cnt <= 0) {
|
||||
CAM_WARN(CAM_ICP, "ICP subdev is already closed");
|
||||
return 0;
|
||||
CAM_DBG(CAM_ICP, "ICP subdev is already closed");
|
||||
goto end;
|
||||
}
|
||||
g_icp_dev.open_cnt--;
|
||||
if (!node) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ static int cam_actuator_subdev_close(struct v4l2_subdev *sd,
|
|||
bool crm_active = cam_req_mgr_is_open(CAM_ACTUATOR);
|
||||
|
||||
if (crm_active) {
|
||||
CAM_INFO(CAM_ACTUATOR,
|
||||
CAM_DBG(CAM_ACTUATOR,
|
||||
"CRM is ACTIVE, close should be from CRM");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ static int cam_csiphy_subdev_close(struct v4l2_subdev *sd,
|
|||
bool crm_active = cam_req_mgr_is_open(CAM_CSIPHY);
|
||||
|
||||
if (crm_active) {
|
||||
CAM_INFO(CAM_CSIPHY, "CRM is ACTIVE, close should be from CRM");
|
||||
CAM_DBG(CAM_CSIPHY, "CRM is ACTIVE, close should be from CRM");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ static int cam_eeprom_subdev_close(struct v4l2_subdev *sd,
|
|||
bool crm_active = cam_req_mgr_is_open(CAM_EEPROM);
|
||||
|
||||
if (crm_active) {
|
||||
CAM_INFO(CAM_EEPROM, "CRM is ACTIVE, close should be from CRM");
|
||||
CAM_DBG(CAM_EEPROM, "CRM is ACTIVE, close should be from CRM");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ static int cam_flash_subdev_close(struct v4l2_subdev *sd,
|
|||
bool crm_active = cam_req_mgr_is_open(CAM_FLASH);
|
||||
|
||||
if (crm_active) {
|
||||
CAM_INFO(CAM_FLASH, "CRM is ACTIVE, close should be from CRM");
|
||||
CAM_DBG(CAM_FLASH, "CRM is ACTIVE, close should be from CRM");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ static int cam_ois_subdev_close(struct v4l2_subdev *sd,
|
|||
bool crm_active = cam_req_mgr_is_open(CAM_OIS);
|
||||
|
||||
if (crm_active) {
|
||||
CAM_INFO(CAM_OIS, "CRM is ACTIVE, close should be from CRM");
|
||||
CAM_DBG(CAM_OIS, "CRM is ACTIVE, close should be from CRM");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ static int cam_sensor_subdev_close(struct v4l2_subdev *sd,
|
|||
bool crm_active = cam_req_mgr_is_open(CAM_SENSOR);
|
||||
|
||||
if (crm_active) {
|
||||
CAM_INFO(CAM_SENSOR, "CRM is ACTIVE, close should be from CRM");
|
||||
CAM_DBG(CAM_SENSOR, "CRM is ACTIVE, close should be from CRM");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue