diff options
author | Roy Pledge <roy.pledge@nxp.com> | 2019-08-01 23:16:55 +0300 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2019-08-16 00:41:42 +0300 |
commit | 0505d00c8dbaf06cb71e7a16818313ce1959e6d7 (patch) | |
tree | cf94b6353ea31c4d4d5be0a7555b088ee75a7f16 /drivers/soc/fsl/qbman/bman_ccsr.c | |
parent | 97777078d695d4294c999ad29363ff11f6384442 (diff) | |
download | linux-0505d00c8dbaf06cb71e7a16818313ce1959e6d7.tar.xz |
soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup
Clean the BMan buffer pools if the device had been initialized
previously. This will ensure a consistent state if the kernel
was soft restarted (kexec for example)
Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl/qbman/bman_ccsr.c')
-rw-r--r-- | drivers/soc/fsl/qbman/bman_ccsr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/soc/fsl/qbman/bman_ccsr.c b/drivers/soc/fsl/qbman/bman_ccsr.c index dc6d7e56be27..cb24a08be084 100644 --- a/drivers/soc/fsl/qbman/bman_ccsr.c +++ b/drivers/soc/fsl/qbman/bman_ccsr.c @@ -195,6 +195,16 @@ int bman_is_probed(void) } EXPORT_SYMBOL_GPL(bman_is_probed); +int bman_requires_cleanup(void) +{ + return __bman_requires_cleanup; +} + +void bman_done_cleanup(void) +{ + __bman_requires_cleanup = 0; +} + static int fsl_bman_probe(struct platform_device *pdev) { int ret, err_irq; |