generic: mtd: backport SPI_NOR_HAS_LOCK
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 7194-staging-fsl-mc-export-irq-cleanup-for-vfio-to-use.patch
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
5
6 VFIO driver needs these basic functions for
7 setting up itt/its of dprc's bound to it.
8
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>
12 ---
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(-)
16
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
20 }
21 }
22
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)
25 {
26 int pool_type;
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);
30 }
31
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)
34 {
35 int pool_type;
36
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_
40
41 void fsl_mc_cleanup_irq_pool(struct fsl_mc_bus *mc_bus);
42
43 +void dprc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
44 +
45 +void dprc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
46 +
47 #endif /* _FSL_MC_PRIVATE_H_ */