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

Commit 9396642f authored by Shilpa Mamidi's avatar Shilpa Mamidi Committed by Gerrit - the friendly Code Review server
Browse files

msm: isp: Add different flags in spin lock



While doing sequential spin lock use different
flag.

Change-Id: I7b90f2896b8ca94a7a9150684d1885e24dc0a6f2
Signed-off-by: default avatarShilpa Mamidi <shilpam@codeaurora.org>
parent a4ced125
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1450,7 +1450,7 @@ void msm_isp_axi_cfg_update(struct vfe_device *vfe_dev,
{
	int i, j;
	uint32_t update_state;
	unsigned long flags;
	unsigned long flags, flags1;
	struct msm_vfe_axi_shared_data *axi_data = &vfe_dev->axi_data;
	struct msm_vfe_axi_stream *stream_info;
	int num_stream = 0;
@@ -1469,7 +1469,7 @@ void msm_isp_axi_cfg_update(struct vfe_device *vfe_dev,
			!stream_info->controllable_output) ||
			stream_info->state == AVAILABLE)
			continue;
		spin_lock_irqsave(&stream_info->lock, flags);
		spin_lock_irqsave(&stream_info->lock, flags1);
		if (stream_info->state == PAUSING) {
			/*AXI Stopped, apply update*/
			stream_info->state = PAUSED;
@@ -1483,7 +1483,7 @@ void msm_isp_axi_cfg_update(struct vfe_device *vfe_dev,
		} else if (stream_info->state == RESUMING) {
			msm_isp_update_dual_HW_axi(vfe_dev, stream_info);
		}
		spin_unlock_irqrestore(&stream_info->lock, flags);
		spin_unlock_irqrestore(&stream_info->lock, flags1);
	}
	spin_unlock_irqrestore(&vfe_dev->common_data->common_dev_data_lock,
		flags);