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

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

Merge "msm: camera: icp: Add write barrier in hfi command write" into dev/msm-4.9-camx

parents 1b5aeb3b e1ce24d1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -109,7 +109,19 @@ int hfi_write_cmd(void *cmd_ptr)
			new_write_idx << BYTE_WORD_SHIFT);
	}

	/*
	 * To make sure command data in a command queue before
	 * updating write index
	 */
	wmb();

	q->qhdr_write_idx = new_write_idx;

	/*
	 * Before raising interrupt make sure command data is ready for
	 * firmware to process
	 */
	wmb();
	cam_io_w((uint32_t)INTR_ENABLE,
		g_hfi->csr_base + HFI_REG_A5_CSR_HOST2ICPINT);
err: