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

Commit 6629ac84 authored by Ankit Gupta's avatar Ankit Gupta Committed by Gerrit - the friendly Code Review server
Browse files

i2c-msm-v2: correct tx only transfer in block mode



TX only (no RX) transfers fail in block mode due to
incorrect calculation of completion mask.

Change-Id: I3c245705c4d6cb2410dabfaaf4bd3135470154df
Signed-off-by: default avatarAnkit Gupta <ankgupta@codeaurora.org>
parent 256995a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1759,7 +1759,7 @@ static int i2c_msm_blk_xfer(struct i2c_msm_ctrl *ctrl)

	/* tx_cnt > 0 always */
	blk->complete_mask = QUP_MAX_OUTPUT_DONE_FLAG;
	if (&ctrl->xfer.rx_cnt)
	if (ctrl->xfer.rx_cnt)
		blk->complete_mask |= QUP_MAX_INPUT_DONE_FLAG;

	/* initialize block mode for new transfer */