OSDN Git Service

ath10k: wait for FW ready during initialization
authorRakesh Pillai <pillair@codeaurora.org>
Wed, 26 Apr 2017 13:31:06 +0000 (19:01 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 28 Apr 2017 09:43:57 +0000 (02:43 -0700)
commitc49ca895c6afa5e8ba5f27415afc64c804ec02c4
tree6d2f92bb5624a16c6fd8f801792d38eb39bcb7c3
parentc01ba1a5f98de6e2f271cc2e447fe3280920cc16
ath10k: wait for FW ready during initialization

Since the qmi service in snoc driver gets registered late,
it misses the first time FW ready is sent. This causes the
wait on FW ready to fail and eventually the driver loading fails.

Proceed with the driver initialization only once the FW ready
indication arrives. Handle error in case the wait for these
events timeout.

Change-Id: Ib20ddb3a2f8b5b48936cc97b38f637f31e4e0100
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
drivers/net/wireless/ath/ath10k/qmi.c