projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9ada65
)
ath10k: add might_sleep() to ath10k_wmi_cmd_send()
author
Kalle Valo
<kvalo@qca.qualcomm.com>
Wed, 16 Oct 2013 12:44:47 +0000
(15:44 +0300)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Wed, 16 Oct 2013 12:44:47 +0000
(15:44 +0300)
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>
drivers/net/wireless/ath/ath10k/wmi.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath10k/wmi.c
b/drivers/net/wireless/ath/ath10k/wmi.c
index d1e513ef71ae98dff26d58df86aef203058ac40c..77238afbed759ae11baaaae0d8f168af16251625 100644
(file)
--- 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);