mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
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
This commit is contained in:
parent
4a60a3cdcf
commit
f5259b045c
@ -187,7 +187,8 @@ static struct irq_chip plic_edge_chip = {
|
|||||||
.irq_set_affinity = plic_set_affinity,
|
.irq_set_affinity = plic_set_affinity,
|
||||||
#endif
|
#endif
|
||||||
.irq_set_type = plic_irq_set_type,
|
.irq_set_type = plic_irq_set_type,
|
||||||
.flags = IRQCHIP_AFFINITY_PRE_STARTUP,
|
.flags = IRQCHIP_SKIP_SET_WAKE |
|
||||||
|
IRQCHIP_AFFINITY_PRE_STARTUP,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct irq_chip plic_chip = {
|
static struct irq_chip plic_chip = {
|
||||||
@ -201,7 +202,8 @@ static struct irq_chip plic_chip = {
|
|||||||
.irq_set_affinity = plic_set_affinity,
|
.irq_set_affinity = plic_set_affinity,
|
||||||
#endif
|
#endif
|
||||||
.irq_set_type = plic_irq_set_type,
|
.irq_set_type = plic_irq_set_type,
|
||||||
.flags = IRQCHIP_AFFINITY_PRE_STARTUP,
|
.flags = IRQCHIP_SKIP_SET_WAKE |
|
||||||
|
IRQCHIP_AFFINITY_PRE_STARTUP,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int plic_irq_set_type(struct irq_data *d, unsigned int type)
|
static int plic_irq_set_type(struct irq_data *d, unsigned int type)
|
||||||
|
Loading…
Reference in New Issue
Block a user