staging: fsl-mc: Extended MC bus allocator to include IRQs
authorJ. German Rivera <German.Rivera@freescale.com>
Wed, 6 Jan 2016 22:03:23 +0000 (16:03 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:10:12 +0000 (19:10 -0800)
commit89f067df928b9bfc53430b09aa4ac894f34f7340
tree5cbcb34a81d14e101814e2c59e1a72ee8a8c4bf6
parent3a288fd51b41a2998195c321d8dd4a229176e6f7
staging: fsl-mc: Extended MC bus allocator to include IRQs

All the IRQs for DPAA2 objects in the same DPRC must use
the ICID of that DPRC, as their device Id in the GIC-ITS.
Thus, all these IRQs must share the same ITT table in the GIC.
As a result, a pool of IRQs with the same device Id must be
preallocated per DPRC (fsl-mc bus instance). So, the fsl-mc
bus object allocator is extended to also provide services
to allocate IRQs to DPAA2 devices, from their parent fsl-mc bus
IRQ pool.

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-allocator.c
drivers/staging/fsl-mc/include/mc-private.h
drivers/staging/fsl-mc/include/mc.h