iommu/rockchip: Register in a sensible order
authorRobin Murphy <robin.murphy@arm.com>
Thu, 13 Mar 2025 17:31:05 +0000 (17:31 +0000)
committerJoerg Roedel <jroedel@suse.de>
Thu, 20 Mar 2025 07:58:23 +0000 (08:58 +0100)
commitf90aa59eb2999e4c33049f7e5679a6424da5c6b9
tree0f1c1240cef75fef76e397e356255eb93097d570
parentf48dcda8f6a48d4592cc74f944d65d6a09f17895
iommu/rockchip: Register in a sensible order

Currently Rockchip calls iommu_device_register() before it's finished
setting up the hardware and driver state, and as such it now gets
unhappy in various ways when registration starts working the way it was
always intended to, and probing client devices straight away. Reorder
the operations to ensure that what we're registering is a prepared and
functional IOMMU instance.

Fixes: bcb81ac6ae3c ("iommu: Get DT/ACPI parsing into the proper probe path")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Quentin Schulz <quentin.schulz@cherry.de>
Tested-by: Dang Huynh <danct12@riseup.net>
Reviewed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tested-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://lore.kernel.org/r/e69532f00bf49d98322b96788edb7e2e305e4006.1741886382.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c