]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/qcom: Revert "iommu/arm: Cleanup resources in case of probe error path"
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 5 Jul 2021 06:56:57 +0000 (08:56 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 14 Jul 2021 10:56:24 +0000 (12:56 +0200)
commitd86e2f9d6f011868cb62d3eb67615a8ccfc450bb
tree38a6e2dc33043d5bb8be737ad5a3c9013d248378
parentb1b49cbcf8bd66059ed6f80c573a7ff83991d8ef
iommu/qcom: Revert "iommu/arm: Cleanup resources in case of probe error path"

QCOM IOMMU driver calls bus_set_iommu() for every IOMMU device controller,
what fails for the second and latter IOMMU devices. This is intended and
must be not fatal to the driver registration process. Also the cleanup
path should take care of the runtime PM state, what is missing in the
current patch. Revert relevant changes to the QCOM IOMMU driver until
a proper fix is prepared.

This partially reverts commit a96e636f9f26f3fea981df83d927b8bcf632ee9c.

Fixes: a96e636f9f26 ("iommu/arm: Cleanup resources in case of probe error path")
Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210705065657.30356-1-m.szyprowski@samsung.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu/qcom_iommu.c