mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip: irq/core] irqchip/git-v3-its: Implement irq_retrigger callback for device-triggered LPIs
@ 2020-10-11 17:57 tip-bot2 for Marc Zyngier
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Marc Zyngier @ 2020-10-11 17:57 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Valentin Schneider, Marc Zyngier, x86, LKML

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     5f774f5e12512b850a611aa99b4601d7eac50edb
Gitweb:        https://git.kernel.org/tip/5f774f5e12512b850a611aa99b4601d7eac50edb
Author:        Marc Zyngier <maz@kernel.org>
AuthorDate:    Fri, 31 Jul 2020 11:33:13 +01:00
Committer:     Marc Zyngier <maz@kernel.org>
CommitterDate: Sun, 06 Sep 2020 18:26:13 +01:00

irqchip/git-v3-its: Implement irq_retrigger callback for device-triggered LPIs

It is pretty easy to provide a retrigger callback for the ITS,
as it we already have the required support in terms of
irq_set_irqchip_state().

Note that this only works for device-generated LPIs, and not
the GICv4 doorbells, which should never have to be retriggered
anyway.

Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 drivers/irqchip/irq-gic-v3-its.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 95f0974..2808545 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -1720,6 +1720,11 @@ static int its_irq_set_irqchip_state(struct irq_data *d,
 	return 0;
 }
 
+static int its_irq_retrigger(struct irq_data *d)
+{
+	return !its_irq_set_irqchip_state(d, IRQCHIP_STATE_PENDING, true);
+}
+
 /*
  * Two favourable cases:
  *
@@ -1971,6 +1976,7 @@ static struct irq_chip its_irq_chip = {
 	.irq_set_affinity	= its_set_affinity,
 	.irq_compose_msi_msg	= its_irq_compose_msi_msg,
 	.irq_set_irqchip_state	= its_irq_set_irqchip_state,
+	.irq_retrigger		= its_irq_retrigger,
 	.irq_set_vcpu_affinity	= its_irq_set_vcpu_affinity,
 };
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-11 17:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11 17:57 [tip: irq/core] irqchip/git-v3-its: Implement irq_retrigger callback for device-triggered LPIs tip-bot2 for Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®