iommu/amd: Handle race between registration and device probe
authorRobin Murphy <robin.murphy@arm.com>
Mon, 15 Aug 2022 16:20:03 +0000 (17:20 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Sep 2022 12:25:01 +0000 (14:25 +0200)
commitcbc040081fdf7d73ef60112b24caa785b3f293f3
tree98d887b1aa98b79f62f35e9a68d2982464fd98d1
parentc919739ce4721ecf7b96b99253b032df30fcf19b
iommu/amd: Handle race between registration and device probe

As for the Intel driver, make sure the AMD driver can cope with seeing
.probe_device calls without having to wait for all known instances to
register first.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/a8d8ebe12b411d28972f1ab928c6db92e8913cf5.1660572783.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c