]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/iommu/exynos-iommu.c
iommu/exynos: Rework and fix internal locking
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 14 Nov 2016 10:08:10 +0000 (11:08 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Nov 2016 16:11:59 +0000 (17:11 +0100)
commite11723000f16419f9b0f69f15d99cf7ab37edc24
tree7decd469bc4a25d5b64c64d035c629b5e9d33c8f
parent92798b4566b1adcf2e259b3116c38553fe655852
iommu/exynos: Rework and fix internal locking

This patch reworks locking in the exynos_iommu_attach/detach_device
functions to ensure that all entries of the sysmmu_drvdata and
exynos_iommu_owner structure are updated under the respective spinlocks,
while runtime pm functions are called without any spinlocks held.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c