Commit f682ba59 authored by Sricharan R's avatar Sricharan R
Browse files

arm/arm64: dma-mapping: Call iommu's remove_device callback during device detach



dma_deconfigure calls arch_teardown_dma_ops in the device_detach path,
which is called when the device gets detached from the driver.
When the device was added, iommu's add_device callback was used to
add the device in to its iommu_group and setup the device to be ready
to use its iommu. Similarly, call remove_device callback to remove the
device from the group and reset any other device's iommu configurations.

Signed-off-by: default avatarSricharan R <sricharan@codeaurora.org>
parent c445b046
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment