iommu/arm-smmu-v3: Don't display an error when IRQ lines are missing
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Mon, 11 Nov 2019 11:17:20 +0000 (12:17 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Nov 2019 14:43:56 +0000 (15:43 +0100)
commitf7aff1a93f52047739af31072de0ad8d149641f3
tree1eff046481ac7f794f943b9edcc8e030b138c3c4
parent5be9aa95f0450aadf015b706b6afa8db6b0e8f92
iommu/arm-smmu-v3: Don't display an error when IRQ lines are missing

Since commit 7723f4c5ecdb ("driver core: platform: Add an error message
to platform_get_irq*()"), platform_get_irq_byname() displays an error
when the IRQ isn't found. Since the SMMUv3 driver uses that function to
query which interrupt method is available, the message is now displayed
during boot for any SMMUv3 that doesn't implement the combined
interrupt, or that implements MSIs.

[   20.700337] arm-smmu-v3 arm-smmu-v3.7.auto: IRQ combined not found
[   20.706508] arm-smmu-v3 arm-smmu-v3.7.auto: IRQ eventq not found
[   20.712503] arm-smmu-v3 arm-smmu-v3.7.auto: IRQ priq not found
[   20.718325] arm-smmu-v3 arm-smmu-v3.7.auto: IRQ gerror not found

Use platform_get_irq_byname_optional() to avoid displaying a spurious
error.

Fixes: 7723f4c5ecdb ("driver core: platform: Add an error message to platform_get_irq*()")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu-v3.c