Re: [PATCH v6] irqchip: Add support for tango interrupt router

2017-08-23 Thread Mason
On 23/08/2017 12:58, Marc Zyngier wrote: > On 20/08/17 18:22, Mason wrote: > >> On 07/08/2017 14:47, Marc Zyngier wrote: >> >>> On 01/08/17 17:56, Mason wrote: >>> +static int tango_alloc(struct irq_domain *dom, uint virq, uint n, void *arg) +{ + int spi; + struct irq_f

Re: [PATCH v6] irqchip: Add support for tango interrupt router

2017-08-23 Thread Marc Zyngier
On 20/08/17 18:22, Mason wrote: > On 07/08/2017 14:47, Marc Zyngier wrote: > >> On 01/08/17 17:56, Mason wrote: >> >>> +/* >>> + * This controller maps IRQ_MAX input lines to SPI_MAX output lines. >>> + * The output lines are routed to GIC SPI 0 to 23. >>> + * This driver muxes LEVEL_HIGH IRQs ont

Re: [PATCH v6] irqchip: Add support for tango interrupt router

2017-08-21 Thread Mason
On 20/08/2017 19:22, Mason wrote: > On 07/08/2017 14:47, Marc Zyngier wrote: > >> On 01/08/17 17:56, Mason wrote: >> >>> +static int tango_set_type(struct irq_data *data, uint flow_type) >>> +{ >>> + return 0; >> >> What does this mean? Either you can do a set-type (and you do it), or >> you ca

Re: [PATCH v6] irqchip: Add support for tango interrupt router

2017-08-20 Thread Mason
On 07/08/2017 14:47, Marc Zyngier wrote: > On 01/08/17 17:56, Mason wrote: > >> +/* >> + * This controller maps IRQ_MAX input lines to SPI_MAX output lines. >> + * The output lines are routed to GIC SPI 0 to 23. >> + * This driver muxes LEVEL_HIGH IRQs onto output line 0, >> + * and gives every ED

Re: [PATCH v6] irqchip: Add support for tango interrupt router

2017-08-07 Thread Marc Zyngier
On 01/08/17 17:56, Mason wrote: > This controller maps 128 input lines to 24 output lines. > The output lines are routed to GIC SPI 0 to 23. > This driver muxes LEVEL_HIGH IRQs onto output line 0, > and gives every EDGE_RISING IRQ a dedicated output line. > --- > Changes from v5 to v6: > Add suspen

[PATCH v6] irqchip: Add support for tango interrupt router

2017-08-01 Thread Mason
This controller maps 128 input lines to 24 output lines. The output lines are routed to GIC SPI 0 to 23. This driver muxes LEVEL_HIGH IRQs onto output line 0, and gives every EDGE_RISING IRQ a dedicated output line. --- Changes from v5 to v6: Add suspend/resume support This driver is now feature c