OSDN Git Service

iommu/amd: Skip attach device domain is same as new domain
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 15 Feb 2023 05:26:41 +0000 (05:26 +0000)
committerJoerg Roedel <jroedel@suse.de>
Sat, 18 Feb 2023 14:36:33 +0000 (15:36 +0100)
commitf451c7a5a3b818ecfeba2ba258570769998baf3a
tree193e1d0f360aa18ef814086a58a18acaf7b0a731
parent996d120b4de2b0d6b592bd9fbbe6e244b81ab3cc
iommu/amd: Skip attach device domain is same as new domain

If device->domain is same as new domain then we can skip the
device attach process.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20230215052642.6016-2-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c