Thread (19 messages) 19 messages, 9 authors, 2017-01-30

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

From: Sinan Kaya <hidden>
Date: 2017-01-29 16:36:16
Also in: linux-acpi, linux-arm-msm, linux-iommu, linux-pci

On 1/23/2017 11:18 AM, Sricharan R wrote:
quoted hunk ↗ jump to hunk
@@ -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?

-- 
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help