From bb31c0f2ef1161aa2489241a035f94316f474f57 Mon Sep 17 00:00:00 2001 From: Sandeep Singh Date: Tue, 9 Apr 2019 17:39:47 +0530 Subject: icnss: return recovery success to wlan driver During firmware rejuvenation the platform driver got the pd_down indication at the same time due to timeout in getting the ACK for the PDEV_SUSPEND command host driver issues self recovery. Since the PD_RESTART bit is set from the rejuvenation, platform driver rejected the recovery request resulting in the driver bug_on. Hence, return recovery success to wlan driver when recovery is already in progress. Change-Id: I2fb63970a5952c8a50c7eb7f4ab0ca9fcb5657b0 Signed-off-by: Sandeep Singh --- drivers/soc/qcom/icnss.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index 830f49eb5ac3..c51006fda59e 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -3527,7 +3527,6 @@ int icnss_trigger_recovery(struct device *dev) if (test_bit(ICNSS_PD_RESTART, &priv->state)) { icnss_pr_err("PD recovery already in progress: state: 0x%lx\n", priv->state); - ret = -EPERM; goto out; } -- cgit v1.2.3