commit | 04fa26c71be5d7cf1c63f23f6345dad209f361d7 | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Fri Oct 30 18:12:41 2015 +0000 |
committer | Will Deacon <will.deacon@arm.com> | Thu Dec 17 12:05:32 2015 +0000 |
tree | 5d20c950030f72ce7dfe8bbcbaa88c40c9c4e6b6 | |
parent | 89df3a96baeaf5d565183e9e9fc35c9974c20d68 [diff] |
iommu/arm-smmu: Convert DMA buffer allocations to the managed API The ARM SMMUv3 driver uses dma_{alloc,free}_coherent to manage its queues and configuration data structures. This patch converts the driver to the managed (dmam_*) API, so that resources are freed automatically on device teardown. This greatly simplifies the failure paths and allows us to remove a bunch of handcrafted freeing code. Signed-off-by: Will Deacon <will.deacon@arm.com>