Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Rich Felker
On Thu, Jul 14, 2016 at 09:27:50PM -0400, Rich Felker wrote: > On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > > There are two versions of the J-Core interrupt controller in use, aic1 > > which generates interrupts with programmable priorities, but only > > supports 8 irq lines and

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Rich Felker
On Thu, Jul 14, 2016 at 09:27:50PM -0400, Rich Felker wrote: > On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > > There are two versions of the J-Core interrupt controller in use, aic1 > > which generates interrupts with programmable priorities, but only > > supports 8 irq lines and

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Rich Felker
On Fri, Jul 15, 2016 at 04:19:17PM +, Jason Cooper wrote: > > + u32 cpu_offset; > > + struct irq_chip chip; > > + struct irq_domain *domain; > > + struct notifier_block nb; > > +} aic_data; > > + > > +static int aic_irqdomain_map(struct irq_domain *d, unsigned int irq, > >

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Rich Felker
On Fri, Jul 15, 2016 at 04:19:17PM +, Jason Cooper wrote: > > + u32 cpu_offset; > > + struct irq_chip chip; > > + struct irq_domain *domain; > > + struct notifier_block nb; > > +} aic_data; > > + > > +static int aic_irqdomain_map(struct irq_domain *d, unsigned int irq, > >

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Jason Cooper
Hi Rich, On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Jason Cooper
Hi Rich, On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Rich Felker
On Fri, Jul 15, 2016 at 11:35:55AM -0400, Paul Gortmaker wrote: > > +++ b/drivers/irqchip/irq-jcore-aic.c > > @@ -0,0 +1,95 @@ > > +/* > > + * J-Core SoC AIC driver > > + * > > + * Copyright (C) 2015-2016 Smart Energy Instruments, Inc. > > + * > > + * This file is subject to the terms and

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Rich Felker
On Fri, Jul 15, 2016 at 11:35:55AM -0400, Paul Gortmaker wrote: > > +++ b/drivers/irqchip/irq-jcore-aic.c > > @@ -0,0 +1,95 @@ > > +/* > > + * J-Core SoC AIC driver > > + * > > + * Copyright (C) 2015-2016 Smart Energy Instruments, Inc. > > + * > > + * This file is subject to the terms and

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Paul Gortmaker
On Wed, May 25, 2016 at 1:43 AM, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-15 Thread Paul Gortmaker
On Wed, May 25, 2016 at 1:43 AM, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2 which uses traps in

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-14 Thread Rich Felker
On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2 which uses

Re: [PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-07-14 Thread Rich Felker
On Wed, May 25, 2016 at 05:43:03AM +, Rich Felker wrote: > There are two versions of the J-Core interrupt controller in use, aic1 > which generates interrupts with programmable priorities, but only > supports 8 irq lines and maps them to cpu traps in the range 17 to 24, > and aic2 which uses

[PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-05-24 Thread Rich Felker
There are two versions of the J-Core interrupt controller in use, aic1 which generates interrupts with programmable priorities, but only supports 8 irq lines and maps them to cpu traps in the range 17 to 24, and aic2 which uses traps in the range 64-127 and supports up to 128 irqs, with priorities

[PATCH v3 08/12] irqchip: add J-Core AIC driver

2016-05-24 Thread Rich Felker
There are two versions of the J-Core interrupt controller in use, aic1 which generates interrupts with programmable priorities, but only supports 8 irq lines and maps them to cpu traps in the range 17 to 24, and aic2 which uses traps in the range 64-127 and supports up to 128 irqs, with priorities