Thread (1 message) 1 message, 1 author, 2017-01-30

[PATCH V7 07/11] iommu: of: Handle IOMMU lookup failure with deferred probing or error

From: Sricharan <hidden>
Date: 2017-01-30 12:00:58
Also in: linux-acpi, linux-arm-msm, linux-iommu, linux-pci

Hi,
-----Original Message-----
From: linux-arm-kernel [mailto:linux-arm-kernel-bounces at lists.infradead.org] On Behalf Of Sinan Kaya
Sent: Sunday, January 29, 2017 10:06 PM
To: Sricharan R <redacted>; robin.murphy at arm.com; will.deacon at arm.com; joro at 8bytes.org;
lorenzo.pieralisi at arm.com; iommu at lists.linux-foundation.org; linux-arm-kernel at lists.infradead.org; linux-arm-
msm at vger.kernel.org; m.szyprowski at samsung.com; bhelgaas at google.com; linux-pci at vger.kernel.org; linux-acpi at vger.kernel.org
Subject: Re: [PATCH V7 07/11] iommu: of: Handle IOMMU lookup failure with deferred probing or error

On 1/23/2017 11:18 AM, Sricharan R wrote:
quoted
@@ -107,7 +107,7 @@ void of_dma_configure(struct device *dev, struct device_node *np)
 	ret = of_dma_get_range(np, &dma_addr, &paddr, &size);
 	if (ret < 0) {
 		dma_addr = offset = 0;
-		size = dev->coherent_dma_mask + 1;
+		size = max(dev->coherent_dma_mask, dev->coherent_dma_mask + 1);
 	} else {
what's happening here?
Sorry, not relevant. Will remove this. Has come in because of some rebase mistake.

Regards,
 Sricharan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help