summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Murphy2019-02-06 18:43:24 +0100
committerGreg Kroah-Hartman2019-03-23 20:09:48 +0100
commit84657a1ba9bd5c9f9c94e8d857ae57dcb5abbcce (patch)
tree4fde5ae7f455ebb0273bf64f2fb764f2b12b19e1 /lib
parentaf_key: unconditionally clone on broadcast (diff)
downloadkernel-qcow2-linux-84657a1ba9bd5c9f9c94e8d857ae57dcb5abbcce.tar.gz
kernel-qcow2-linux-84657a1ba9bd5c9f9c94e8d857ae57dcb5abbcce.tar.xz
kernel-qcow2-linux-84657a1ba9bd5c9f9c94e8d857ae57dcb5abbcce.zip
ARM: 8835/1: dma-mapping: Clear DMA ops on teardown
[ Upstream commit fc67e6f120a388b611d94cc40baf99a5cc56b283 ] Installing the appropriate non-IOMMU DMA ops in arm_iommu_detch_device() serves the case where IOMMU-aware drivers choose to control their own mapping but still make DMA API calls, however it also affects the case when the arch code itself tears down the mapping upon driver unbinding, where the ops now get left in place and can inhibit arch_setup_dma_ops() on subsequent re-probe attempts. Fix the latter case by making sure that arch_teardown_dma_ops() cleans up whenever the ops were automatically installed by its counterpart. Reported-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Fixes: 1874619a7df4 "ARM: dma-mapping: Set proper DMA ops in arm_iommu_detach_device()" Tested-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Tested-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions