]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Free irqs in shutdown handler
authorHeiko Stuebner <heiko@sntech.de>
Mon, 27 Aug 2018 10:56:24 +0000 (12:56 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 25 Sep 2018 09:13:34 +0000 (11:13 +0200)
commit9e7279d46de8108e39f3d075481613e5e424fbdf
treedf1e76847055b509e1c2a49432f1097f057739e1
parentcf80c873e685c0440e4b1c448412449c7a97917a
iommu/rockchip: Free irqs in shutdown handler

In the iommu's shutdown handler we disable runtime-pm which could
result in the irq-handler running unclocked and since commit
    c410b9d7ce7e ("iommu/rockchip: Handle errors returned from PM framework")
we warn about that fact.

This can cause warnings on shutdown on some Rockchip machines, so
free the irqs in the shutdown handler before we disable runtime-pm.

Reported-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Fixes: c410b9d7ce7e ("iommu/rockchip: Handle errors returned from PM framework")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c