RE: [PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2013-10-31 Thread R, Sricharan
; robherri...@gmail.com; Shilimkar, Santosh; Rob Herring Subject: Re: [PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP On Wed, 30 Oct 2013, Sricharan R wrote: > +static inline const u32 allocate_free_irq(int cb_no) I understand the "static inline" part, but "

Re: [PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2013-10-30 Thread Thomas Gleixner
On Wed, 30 Oct 2013, Sricharan R wrote: > +static inline const u32 allocate_free_irq(int cb_no) I understand the "static inline" part, but "const u32" is more than fishy. What's wrong with "static inline int" ? > +{ > + int i; > + > + for (i = 0; i < cb->int_max; i++) { > + if

[PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2013-10-30 Thread Sricharan R
Some socs have a large number of interrupts requests to service the needs of its many peripherals and subsystems. All of the interrupt lines from the subsystems are not needed at the same time, so they have to be muxed to the irq-controller appropriately. In such places a interrupt controllers are