From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx> With the API in place, request the correct protocol ID with the GPI DMA to avoid having to hardcode this obvious information in the device tree. Signed-off-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx> --- drivers/i2c/busses/i2c-qcom-geni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index ff2289b52c84ccf9ef786c2618bd869453c5f611..4c702ee728d6cc9282688bc278bd401f3de3266a 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -754,14 +754,14 @@ static int setup_gpi_dma(struct geni_i2c_dev *gi2c) int ret; geni_se_select_mode(&gi2c->se, GENI_GPI_DMA); - gi2c->tx_c = dma_request_chan(gi2c->se.dev, "tx"); + gi2c->tx_c = dma_request_chan_w_data(gi2c->se.dev, "tx", (void *)GENI_SE_I2C); if (IS_ERR(gi2c->tx_c)) { ret = dev_err_probe(gi2c->se.dev, PTR_ERR(gi2c->tx_c), "Failed to get tx DMA ch\n"); goto err_tx; } - gi2c->rx_c = dma_request_chan(gi2c->se.dev, "rx"); + gi2c->rx_c = dma_request_chan_w_data(gi2c->se.dev, "rx", (void *)GENI_SE_I2C); if (IS_ERR(gi2c->rx_c)) { ret = dev_err_probe(gi2c->se.dev, PTR_ERR(gi2c->rx_c), "Failed to get rx DMA ch\n"); -- 2.50.1