Skip to content

Commit 5ad5f66

Browse files
rmurphy-armjoergroedel
authored andcommitted
iommu/sprd: Drop IOVA cookie management
The core code bakes its own cookies now. Acked-by: Chunyan Zhang <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/4e7fc6e523cb4b63fb13f5be10041eb24c0dcb1e.1628682048.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <[email protected]>
1 parent b811a45 commit 5ad5f66

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/iommu/sprd-iommu.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include <linux/clk.h>
1010
#include <linux/device.h>
11-
#include <linux/dma-iommu.h>
1211
#include <linux/dma-mapping.h>
1312
#include <linux/errno.h>
1413
#include <linux/iommu.h>
@@ -144,11 +143,6 @@ static struct iommu_domain *sprd_iommu_domain_alloc(unsigned int domain_type)
144143
if (!dom)
145144
return NULL;
146145

147-
if (iommu_get_dma_cookie(&dom->domain)) {
148-
kfree(dom);
149-
return NULL;
150-
}
151-
152146
spin_lock_init(&dom->pgtlock);
153147

154148
dom->domain.geometry.aperture_start = 0;
@@ -161,7 +155,6 @@ static void sprd_iommu_domain_free(struct iommu_domain *domain)
161155
{
162156
struct sprd_iommu_domain *dom = to_sprd_domain(domain);
163157

164-
iommu_put_dma_cookie(domain);
165158
kfree(dom);
166159
}
167160

0 commit comments

Comments
 (0)