diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-16 15:44:47 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-16 15:44:47 +0300 |
commit | 56b84287d14aa74823a9c290d0c5839d38365110 (patch) | |
tree | 69eba83744bf1a8c3b0e7d8e1febb5f1f510efda /drivers/net/wireless/ath/ath10k/wmi.c | |
parent | b9ada65d97be58d82941f23dce5adde0d0eec61a (diff) | |
download | op-kernel-dev-56b84287d14aa74823a9c290d0c5839d38365110.zip op-kernel-dev-56b84287d14aa74823a9c290d0c5839d38365110.tar.gz |
ath10k: add might_sleep() to ath10k_wmi_cmd_send()
ath10k_wmi_cmd_send() will now sleep if there are no credits available.
To make it easier to catch callers in atomic context add might_sleep()
to the function.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index d1e513e..77238af 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -613,6 +613,8 @@ static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, { int ret = -EOPNOTSUPP; + might_sleep(); + if (cmd_id == WMI_CMD_UNSUPPORTED) { ath10k_warn("wmi command %d is not supported by firmware\n", cmd_id); |