diff options
author | Yuanyuan Liu <yuanliu@codeaurora.org> | 2016-05-12 10:17:58 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-05-23 11:45:57 -0700 |
commit | 0e0aa93d3227224f133c3e02d3906b9946f572ab (patch) | |
tree | 873796a0fc49570e1c016392d83ebd2b74074e52 /core/pld/src/pld_common.c | |
parent | d416dbd274eccec004a41702d0328ccf7b2a94a0 (diff) | |
download | qcacld-0e0aa93d3227224f133c3e02d3906b9946f572ab.tar.gz |
qcacld-3.0: Use PLD APIs
Replace CNSS/ICNSS APIs with PLD APIs.
Change-Id: Ic0be1ff00dd7b4fc0b125e625f5d3977f4580c5e
CRs-Fixed: 1014363
Diffstat (limited to 'core/pld/src/pld_common.c')
-rw-r--r-- | core/pld/src/pld_common.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c index 00d0e79368..4d35647438 100644 --- a/core/pld/src/pld_common.c +++ b/core/pld/src/pld_common.c @@ -587,6 +587,28 @@ int pld_wlan_get_dfs_nol(struct device *dev, void *info, u16 info_len) } /** + * pld_schedule_recovery_work() - Schedule recovery work + * @dev: device + * + * Schedule a system self recovery work. + * + * Return: void + */ +void pld_schedule_recovery_work(struct device *dev) +{ + switch (pld_get_bus_type(dev)) { + case PLD_BUS_TYPE_PCIE: + cnss_schedule_recovery_work(); + break; + case PLD_BUS_TYPE_SNOC: + break; + default: + pr_err("Invalid device type\n"); + break; + } +} + +/** * pld_wlan_pm_control() - WLAN PM control on PCIE * @dev: device * @vote: 0 for enable PCIE PC, 1 for disable PCIE PC |