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

Commit 6a17d982 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "i2c-qcom-geni: Set DMA mask to support 64 bit DMA"

parents 68890aee b7d52b13
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -888,6 +888,15 @@ static int geni_i2c_probe(struct platform_device *pdev)
		return ret;
	}

	ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
	if (ret) {
		ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
		if (ret) {
			dev_err(&pdev->dev, "could not set DMA mask\n");
			return ret;
		}
	}

	gi2c->adap.algo = &geni_i2c_algo;
	init_completion(&gi2c->xfer);
	platform_set_drvdata(pdev, gi2c);