+21
−111
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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>