summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorGovind Singh <govinds@codeaurora.org>2017-02-06 14:32:13 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-07 21:40:53 -0800
commitef65d63b3741c2c5587e9b9f58e287c399c49d38 (patch)
tree66d3972b9e61c084100dd54e09342268c0216a53 /drivers/net
parent2aa89ab3ff59a788321bc6af782d639cfc8dab1f (diff)
ath10k: Return failure if fw ready is not arrived
If fw ready indication is not received prior driver probe, core register will fail as fw interfaces are not ready. Return failure for insmod if fw ready indication is not received by the driver. Change-Id: I1953c60bda3df464b5f815bb66cc0d5da7aee037 Signed-off-by: Govind Singh <govinds@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath10k/snoc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c
index 487c243e18ec..4fd8e260d80e 100644
--- a/drivers/net/wireless/ath/ath10k/snoc.c
+++ b/drivers/net/wireless/ath/ath10k/snoc.c
@@ -1365,6 +1365,10 @@ static int __init ath10k_snoc_init(void)
{
int ret;
+ if (!icnss_is_fw_ready()) {
+ pr_err("failed to get fw ready indication\n");
+ return -EAGAIN;
+ }
ret = platform_driver_register(&ath10k_snoc_driver);
if (ret)
pr_err("failed to register ath10k snoc driver: %d\n",