]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: crossbar: Change allocation logic by reversing search for free irqs
authorNishanth Menon <nm@ti.com>
Thu, 26 Jun 2014 07:10:23 +0000 (12:40 +0530)
committerJason Cooper <jason@lakedaemon.net>
Mon, 30 Jun 2014 19:11:21 +0000 (19:11 +0000)
commit59705a59371a0b12dce91165e0b0d0afdaa1eeb1
tree3b0813201fa35005125d22ce0f381055c97bbaf0
parent22f62b222e55cf240f99a123f45b6b1cb70b96fb
irqchip: crossbar: Change allocation logic by reversing search for free irqs

Reverse the search algorithm to ensure that address mapping and IRQ
allocation logics are proper. This makes the below bugs visible sooner.

class 1. address space errors -> example:
reg = <a size_b>
ti,max-irqs =  is a wrong parameter

class 2: irq-reserved list - which decides which entries in the
address space is not actually wired in

class 3: wrong list of routable-irqs.

In general allocating from max to min tends to have benefits in
ensuring the different issues that may be present in dts is easily
caught at definition time, rather than at a later point in time.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Sricharan R <r.sricharan@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Link: https://lkml.kernel.org/r/1403766634-18543-6-git-send-email-r.sricharan@ti.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-crossbar.c