Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194138
b: refs/heads/master
c: bc0f03e
h: refs/heads/master
v: v3
  • Loading branch information
Saravanan Dhanabal authored and John W. Linville committed Mar 31, 2010
1 parent 8f3528a commit 04fa753
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c18995540cc4d2c84d130581b8b6720b22ca16b5
refs/heads/master: bc0f03ea579d78f845a44a0c611806da64057b03
9 changes: 8 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1271_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include "wl1271_cmd.h"
#include "wl1271_event.h"

#define WL1271_CMD_POLL_COUNT 5

/*
* send command to firmware
*
Expand All @@ -52,6 +54,7 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len,
u32 intr;
int ret = 0;
u16 status;
u16 poll_count = 0;

cmd = buf;
cmd->id = cpu_to_le16(id);
Expand All @@ -73,7 +76,11 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len,
goto out;
}

msleep(1);
udelay(10);
poll_count++;
if (poll_count == WL1271_CMD_POLL_COUNT)
wl1271_info("cmd polling took over %d cycles",
poll_count);

intr = wl1271_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR);
}
Expand Down

0 comments on commit 04fa753

Please sign in to comment.