From 63d360abdc25071afb3fc133da19507af64f0e8f Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Tue, 20 Jun 2017 17:00:35 -0700 Subject: [PATCH] qcacld-3.0: Add support for host initiated recovery for QCA6290 Add the interface that host driver can trigger FW assert and do recovery for QCA6290. Change-Id: I03a9c374fd2ddc5cc46b9b0a98ce05bcf80a53ec CRs-fixed: 2068035 --- core/pld/src/pld_common.c | 3 ++- core/pld/src/pld_pcie.h | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c index 4c4f70753142..eaa37b6d5200 100644 --- a/core/pld/src/pld_common.c +++ b/core/pld/src/pld_common.c @@ -1545,8 +1545,9 @@ int pld_force_assert_target(struct device *dev) case PLD_BUS_TYPE_SNOC: ret = pld_snoc_force_assert_target(dev); break; - case PLD_BUS_TYPE_PCIE: + ret = pld_pcie_force_assert_target(dev); + break; case PLD_BUS_TYPE_SDIO: ret = -EINVAL; break; diff --git a/core/pld/src/pld_pcie.h b/core/pld/src/pld_pcie.h index 95481e98353d..186dfb41a52d 100644 --- a/core/pld/src/pld_pcie.h +++ b/core/pld/src/pld_pcie.h @@ -238,7 +238,10 @@ static inline int pld_pcie_power_off(struct device *dev) { return 0; } - +static inline int pld_pcie_force_assert_target(struct device *dev) +{ + return -EINVAL; +} static inline uint8_t *pld_pcie_get_wlan_mac_address(struct device *dev, uint32_t *num) { @@ -356,7 +359,10 @@ static inline int pld_pcie_power_off(struct device *dev) { return cnss_power_down(dev); } - +static inline int pld_pcie_force_assert_target(struct device *dev) +{ + return cnss_force_fw_assert(dev); +} static inline uint8_t *pld_pcie_get_wlan_mac_address(struct device *dev, uint32_t *num) {