Skip to content

Commit f5259b0

Browse files
smaeulMarc Zyngier
authored andcommitted
irqchip/sifive-plic: Support wake IRQs
The PLIC does not define any special method for marking interrupts as wakeup-capable, so it should have the IRQCHIP_SKIP_SET_WAKE flag set. Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221126194805.19431-1-samuel@sholland.org
1 parent 4a60a3c commit f5259b0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/irqchip/irq-sifive-plic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ static struct irq_chip plic_edge_chip = {
187187
.irq_set_affinity = plic_set_affinity,
188188
#endif
189189
.irq_set_type = plic_irq_set_type,
190-
.flags = IRQCHIP_AFFINITY_PRE_STARTUP,
190+
.flags = IRQCHIP_SKIP_SET_WAKE |
191+
IRQCHIP_AFFINITY_PRE_STARTUP,
191192
};
192193

193194
static struct irq_chip plic_chip = {
@@ -201,7 +202,8 @@ static struct irq_chip plic_chip = {
201202
.irq_set_affinity = plic_set_affinity,
202203
#endif
203204
.irq_set_type = plic_irq_set_type,
204-
.flags = IRQCHIP_AFFINITY_PRE_STARTUP,
205+
.flags = IRQCHIP_SKIP_SET_WAKE |
206+
IRQCHIP_AFFINITY_PRE_STARTUP,
205207
};
206208

207209
static int plic_irq_set_type(struct irq_data *d, unsigned int type)

0 commit comments

Comments
 (0)