irqchip/armada-370-xp: Fix support for Multi-MSI interrupts
authorPali Rohár <pali@kernel.org>
Thu, 25 Nov 2021 13:00:57 +0000 (14:00 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 25 Nov 2021 16:49:50 +0000 (16:49 +0000)
commitd0a553502efd545c1ce3fd08fc4d423f8e4ac3d6
tree9e85c6f829068e7a0fcc00c74a4fc3c3f4c618b3
parentce20eff57361e72878a772ef08b5239d3ae102b6
irqchip/armada-370-xp: Fix support for Multi-MSI interrupts

irq-armada-370-xp driver already sets MSI_FLAG_MULTI_PCI_MSI flag into
msi_domain_info structure. But allocated interrupt numbers for Multi-MSI
needs to be properly aligned otherwise devices send MSI interrupt with
wrong number.

Fix this issue by using function bitmap_find_free_region() instead of
bitmap_find_next_zero_area() to allocate aligned interrupt numbers.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: a71b9412c90c ("irqchip/armada-370-xp: Allow allocation of multiple MSIs")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211125130057.26705-2-pali@kernel.org
drivers/irqchip/irq-armada-370-xp.c