1 From 552d628c887d970b9a97d8db2629adc4820fb8e3 Mon Sep 17 00:00:00 2001
2 From: Bharat Bhushan <Bharat.Bhushan@freescale.com>
3 Date: Thu, 16 Jul 2015 14:44:24 +0530
4 Subject: [PATCH 194/226] staging: fsl-mc: export irq cleanup for vfio to use
6 VFIO driver needs these basic functions for
7 setting up itt/its of dprc's bound to it.
9 Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
10 (Stuart: resolved merge conflict, commit log cleanup)
11 Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
13 drivers/staging/fsl-mc/bus/dprc-driver.c | 4 ++--
14 drivers/staging/fsl-mc/include/mc-private.h | 4 ++++
15 2 files changed, 6 insertions(+), 2 deletions(-)
17 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c
18 +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c
19 @@ -193,7 +193,7 @@ static void dprc_add_new_devices(struct
23 -static void dprc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev)
24 +void dprc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev)
27 struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev);
28 @@ -234,7 +234,7 @@ static void dprc_cleanup_resource_pool(s
29 WARN_ON(free_count != res_pool->free_count);
32 -static void dprc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev)
33 +void dprc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev)
37 --- a/drivers/staging/fsl-mc/include/mc-private.h
38 +++ b/drivers/staging/fsl-mc/include/mc-private.h
39 @@ -157,4 +157,8 @@ int fsl_mc_populate_irq_pool(struct fsl_
41 void fsl_mc_cleanup_irq_pool(struct fsl_mc_bus *mc_bus);
43 +void dprc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
45 +void dprc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
47 #endif /* _FSL_MC_PRIVATE_H_ */