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

Commit 51149ab8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: slimbus: slim-msm-ngd: Set 32 bit DMA mask"

parents 8b1dad02 e7436032
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1797,6 +1797,12 @@ static int ngd_slim_probe(struct platform_device *pdev)
		goto err_nobulk;
	}

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

	/* typical txn numbers and size used in bulk operation */
	dev->bulk.buf_sz = SLIM_MAX_TXNS * 8;
	dev->bulk.base = kzalloc(dev->bulk.buf_sz, GFP_KERNEL | GFP_DMA);