staging: fsl-mc: Populate the IRQ pool for an MC bus instance
authorJ. German Rivera <German.Rivera@freescale.com>
Wed, 6 Jan 2016 22:03:25 +0000 (16:03 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:10:12 +0000 (19:10 -0800)
commit1e4aa42aa9a16d3ec2bbbf7e7d946603b52217de
tree4c67287046eb007dbf94f2f8d764ad4dcb6a1934
parent1129cde59d08afd91fb2baed66824eb2dbd079aa
staging: fsl-mc: Populate the IRQ pool for an MC bus instance

Scan the corresponding DPRC container to get total count
of IRQs needed by all its child DPAA2 objects. Then,
preallocate a set of MSI IRQs with the DPRC's ICID
(GIT-ITS device Id) to populate the the DPRC's IRQ pool.
Each child DPAA2 object in the DPRC and the DPRC object itself
will allocate their necessary MSI IRQs from the DPRC's IRQ pool,
in their driver probe function.

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