diff options
author | Pali Rohár <pali@kernel.org> | 2021-11-25 14:00:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-14 14:49:06 +0100 |
commit | fc20091b3f97cedf7210bdb472b3408be9a20fb8 (patch) | |
tree | b8e13ddf0a21cded94ee8b491f69481dd2266274 /crypto/crypto_engine.c | |
parent | a3689e694b39e515259ecb5e33898f1da17ba541 (diff) | |
download | linux-stable-fc20091b3f97cedf7210bdb472b3408be9a20fb8.tar.gz linux-stable-fc20091b3f97cedf7210bdb472b3408be9a20fb8.tar.bz2 linux-stable-fc20091b3f97cedf7210bdb472b3408be9a20fb8.zip |
irqchip/armada-370-xp: Fix support for Multi-MSI interrupts
commit d0a553502efd545c1ce3fd08fc4d423f8e4ac3d6 upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/crypto_engine.c')
0 files changed, 0 insertions, 0 deletions