]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iommu: rockchip: Free domain on .domain_free
authorEzequiel Garcia <ezequiel@collabora.com>
Wed, 2 Oct 2019 17:29:23 +0000 (14:29 -0300)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 16:03:46 +0000 (10:03 -0600)
commit62e4342d36399d4e94ecec6905846b483869943b
tree4b9b4dcdc544c2917d285ac502106119f4c1149a
parent2ba282d5ab52b041cb55175ed266c95f8c1b5bde
iommu: rockchip: Free domain on .domain_free

BugLink: https://bugs.launchpad.net/bugs/1858429
[ Upstream commit 42bb97b80f2e3bf592e3e99d109b67309aa1b30e ]

IOMMU domain resource life is well-defined, managed
by .domain_alloc and .domain_free.

Therefore, domain-specific resources shouldn't be tied to
the device life, but instead to its domain.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/iommu/rockchip-iommu.c