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

Commit 8d81b53c authored by Sujeev Dias's avatar Sujeev Dias
Browse files

i2c: qcom: geni: use geni device ptr for dma mapping



Even during GSI mode, geni dma is used for data transfer
between DDR and serial engine. Use geni device ptr for
correct iova mapping.

CRs-Fixed: 2102639
Change-Id: Iad263905e9271faa435f6c7f87bfdd2fe1f4bcd4
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 69484217
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -469,8 +469,8 @@ static int geni_i2c_gsi_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
		int stretch = (i < (num - 1));
		dma_cookie_t tx_cookie, rx_cookie;
		struct msm_gpi_tre *go_t = &gi2c->go_t;
		struct device *rx_dev = gi2c->rx_c->device->dev;
		struct device *tx_dev = gi2c->tx_c->device->dev;
		struct device *rx_dev = gi2c->dev;
		struct device *tx_dev = gi2c->dev;

		gi2c->cur = &msgs[i];
		if (!gi2c->cfg_sent) {