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

Commit 3adda53e authored by Vipin Deep Kaur's avatar Vipin Deep Kaur
Browse files

i2c: i2c-qcom-geni: Enable shared flag in GSI mode only



The shared flag should only be enabled in GSI mode only to
handle multi-EE GSI usecase.

Change-Id: I4f1c4d82c6da488fefab619f3fad03046f68ba0b
Signed-off-by: default avatarVipin Deep Kaur <vkaur@codeaurora.org>
parent bc91cb8c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -666,6 +666,9 @@ static int geni_i2c_xfer(struct i2c_adapter *adap,
	if (gi2c->se_mode == GSI_ONLY) {
		ret = geni_i2c_gsi_xfer(adap, msgs, num);
		goto geni_i2c_txn_ret;
	} else {
		/* Don't set shared flag in non-GSI mode */
		gi2c->is_shared = false;
	}

	qcom_geni_i2c_conf(gi2c, 0);