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)
commit74bc2abca7603c956d1e331e8b9bee7b874c1eec
treedf1e76847055b509e1c2a49432f1097f057739e1
parent6bf4ca7fbc85d80446ac01c0d1d77db4d91a6d84
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
    3fc7c5c0cff3 ("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: 3fc7c5c0cff3 ("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