[irqchip: irq/irqchip-next] genirq/msi: Provide default .irq_ack() for MSI chips

irqchip-bot for Valentin Schneider
2021-08-12T15:13:12Z

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID: 69ad12c13d582c8e28404138d8e19ea7f06166a5
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/69ad12c13d582c8e28404138d8e19ea7f06166a5
Author: Valentin Schneider <valentin.schneider@arm.com>
AuthorDate: Tue, 29 Jun 2021 13:50:07 +01:00
Committer: Marc Zyngier <maz@kernel.org>
CommitterDate: Thu, 12 Aug 2021 15:48:21 +01:00

genirq/msi: Provide default .irq_ack() for MSI chips

MSI_FLAG_USE_DEF_CHIP_OPS can now provide a default .irq_eoi() to any
irqchip attached to an MSI domain. Complement it by adding a default
.irq_ack() implementation.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210629125010.458872-11-valentin.schneider@arm.com
---
kernel/irq/msi.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index c975909..127e0dd 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -274,6 +274,8 @@ static void msi_domain_update_chip_ops(struct msi_domain_info *info)
BUG_ON(!chip || !chip->irq_mask || !chip->irq_unmask);
if (!chip->irq_set_affinity)
chip->irq_set_affinity = msi_domain_set_affinity;
+ if (!chip->irq_ack)
+ chip->irq_ack = irq_chip_ack_parent;
if (!chip->irq_eoi)
chip->irq_eoi = irq_chip_eoi_parent;
}