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>
This commit is contained in:
parent
2aa89ab3ff
commit
ef65d63b37
1 changed files with 4 additions and 0 deletions
|
@ -1365,6 +1365,10 @@ static int __init ath10k_snoc_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
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);
|
ret = platform_driver_register(&ath10k_snoc_driver);
|
||||||
if (ret)
|
if (ret)
|
||||||
pr_err("failed to register ath10k snoc driver: %d\n",
|
pr_err("failed to register ath10k snoc driver: %d\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue