All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about SPIs' interrupt trigger type restrictions
@ 2022-05-25 10:01 ` richard clark
  0 siblings, 0 replies; 28+ messages in thread
From: richard clark @ 2022-05-25 10:01 UTC (permalink / raw)
  To: maz; +Cc: linux-arm-kernel, linux-kernel

Hi Marc,

For below code snippet about SPI interrupt trigger type:

static int gic_set_type(struct irq_data *d, unsigned int type)
{
        ...
        /* SPIs have restrictions on the supported types */
        if ((range == SPI_RANGE || range == ESPI_RANGE) &&
            type != IRQ_TYPE_LEVEL_HIGH && type != IRQ_TYPE_EDGE_RISING)
                return -EINVAL;
        ...
}

We have a device at hand whose interrupt type is SPI, Falling edge
will trigger the interrupt. But the request_irq(50, handler,
IRQ_TYPE_EDGE_FALLING, ...) will return -EINVAL.

The question is, why must the SPI interrupt use IRQ_TYPE_EDGE_RISING
instead of IRQ_TYPE_EDGE_FALLING?

Thanks,

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2022-06-07  8:49 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-25 10:01 Question about SPIs' interrupt trigger type restrictions richard clark
2022-05-25 10:01 ` richard clark
2022-05-25 19:14 ` Robin Murphy
2022-05-25 19:14   ` Robin Murphy
2022-05-26  3:44   ` richard clark
2022-05-26  3:44     ` richard clark
2022-05-26  6:54     ` Marc Zyngier
2022-05-26  6:54       ` Marc Zyngier
2022-05-26  8:40       ` Robin Murphy
2022-05-26  8:40         ` Robin Murphy
2022-05-26 12:30         ` richard clark
2022-05-26 12:30           ` richard clark
2022-05-26 13:00           ` Marc Zyngier
2022-05-26 13:00             ` Marc Zyngier
2022-05-26 12:09       ` richard clark
2022-05-26 12:09         ` richard clark
2022-05-26 12:52         ` Marc Zyngier
2022-05-26 12:52           ` Marc Zyngier
2022-05-30  8:40         ` Daniel Thompson
2022-05-30  8:40           ` Daniel Thompson
2022-06-05 12:03           ` richard clark
2022-06-05 12:03             ` richard clark
2022-06-06 10:08             ` Daniel Thompson
2022-06-06 10:08               ` Daniel Thompson
2022-06-07  1:29               ` richard clark
2022-06-07  1:29                 ` richard clark
2022-06-07  8:47                 ` Daniel Thompson
2022-06-07  8:47                   ` Daniel Thompson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.