summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc/include
diff options
context:
space:
mode:
authorJ. German Rivera <German.Rivera@freescale.com>2016-01-06 16:03:25 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 19:10:12 -0800
commit1e4aa42aa9a16d3ec2bbbf7e7d946603b52217de (patch)
tree4c67287046eb007dbf94f2f8d764ad4dcb6a1934 /drivers/staging/fsl-mc/include
parent1129cde59d08afd91fb2baed66824eb2dbd079aa (diff)
downloadlinux-1e4aa42aa9a16d3ec2bbbf7e7d946603b52217de.tar.bz2
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>
Diffstat (limited to 'drivers/staging/fsl-mc/include')
-rw-r--r--drivers/staging/fsl-mc/include/mc-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/fsl-mc/include/mc-private.h b/drivers/staging/fsl-mc/include/mc-private.h
index 3babe92d8abc..be72a44ba064 100644
--- a/drivers/staging/fsl-mc/include/mc-private.h
+++ b/drivers/staging/fsl-mc/include/mc-private.h
@@ -114,7 +114,8 @@ void fsl_mc_device_remove(struct fsl_mc_device *mc_dev);
int dprc_scan_container(struct fsl_mc_device *mc_bus_dev);
-int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev);
+int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,
+ unsigned int *total_irq_count);
int __init dprc_driver_init(void);