OSDN Git Service

iommu: rockchip: Free domain on .domain_free
authorEzequiel Garcia <ezequiel@collabora.com>
Wed, 2 Oct 2019 17:29:23 +0000 (14:29 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:12:37 +0000 (19:12 +0100)
commita03f5974f32ced7b85f1a64e66568f9156575924
treecad9c5569fbd648414da8032cbf37bcdd467a2e8
parent7a370ecb6f5cdb1bd649d1da9b70824ebf07e510
iommu: rockchip: Free domain on .domain_free

[ 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>
drivers/iommu/rockchip-iommu.c