Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30e626bc authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: sync: Add warning logs" into dev/msm-4.14-camx

parents 6587ac72 23b8e9ec
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -176,6 +176,12 @@ int cam_sync_deinit_object(struct sync_table_row *table, uint32_t idx)
			idx);
			idx);
		return -EINVAL;
		return -EINVAL;
	}
	}

	if (row->state == CAM_SYNC_STATE_ACTIVE)
		CAM_WARN(CAM_SYNC,
			"Destroying an active sync object name:%s id:%i",
			row->name, row->sync_id);

	row->state = CAM_SYNC_STATE_INVALID;
	row->state = CAM_SYNC_STATE_INVALID;


	/* Object's child and parent objects will be added into this list */
	/* Object's child and parent objects will be added into this list */
@@ -218,6 +224,11 @@ int cam_sync_deinit_object(struct sync_table_row *table, uint32_t idx)
			continue;
			continue;
		}
		}


		if (child_row->state == CAM_SYNC_STATE_ACTIVE)
			CAM_WARN(CAM_SYNC,
				"Warning: destroying active child sync obj = %d",
				child_info->sync_id);

		cam_sync_util_cleanup_parents_list(child_row,
		cam_sync_util_cleanup_parents_list(child_row,
			SYNC_LIST_CLEAN_ONE, idx);
			SYNC_LIST_CLEAN_ONE, idx);


@@ -242,6 +253,11 @@ int cam_sync_deinit_object(struct sync_table_row *table, uint32_t idx)
			continue;
			continue;
		}
		}


		if (parent_row->state == CAM_SYNC_STATE_ACTIVE)
			CAM_WARN(CAM_SYNC,
				"Warning: destroying active parent sync obj = %d",
				parent_info->sync_id);

		cam_sync_util_cleanup_children_list(parent_row,
		cam_sync_util_cleanup_children_list(parent_row,
			SYNC_LIST_CLEAN_ONE, idx);
			SYNC_LIST_CLEAN_ONE, idx);