Since commit "xen/arm: domain_build: Rework the way to allocate the
event channel interrupt", it is not possible for an irq to be both below 16
and greater/equal than 32.
Also fix the reference to linux documentation while we're at it.
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@dornerworks.com>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
[Slightly rework the commit message]
{
__be32 *cells = interrupt;
- BUG_ON(irq < 16 && irq >= 32);
+ BUG_ON(irq < 16);
+ BUG_ON(irq >= 32);
- /* See linux Documentation/devictree/bindings/arm/gic.txt */
+ /* See linux Documentation/devicetree/bindings/interrupt-controller/arm,gic.txt */
dt_set_cell(&cells, 1, 1); /* is a PPI */
dt_set_cell(&cells, 1, irq - 16); /* PPIs start at 16 */
dt_set_cell(&cells, 1, (cpumask << 8) | level);