Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122817
b: refs/heads/master
c: 4087f6f
h: refs/heads/master
i:
  122815: 1a4814e
v: v3
  • Loading branch information
Wu, Fengguang authored and John W. Linville committed Dec 19, 2008
1 parent 7e20b4a commit 263b6bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: febf3370c63b4ea7fc1cedb9a73ac37e3cb21079
refs/heads/master: 4087f6f68cdbd2845c7e54236bae1b058a7b827b
11 changes: 6 additions & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl-io.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,18 @@ static inline u32 __iwl_read32(char *f, u32 l, struct iwl_priv *priv, u32 ofs)
#define iwl_read32(p, o) _iwl_read32(p, o)
#endif

#define IWL_POLL_INTERVAL 10 /* microseconds */
static inline int _iwl_poll_bit(struct iwl_priv *priv, u32 addr,
u32 bits, u32 mask, int timeout)
{
int i = 0;
int t = 0;

do {
if ((_iwl_read32(priv, addr) & mask) == (bits & mask))
return i;
udelay(10);
i += 10;
} while (i < timeout);
return t;
udelay(IWL_POLL_INTERVAL);
t += IWL_POLL_INTERVAL;
} while (t < timeout);

return -ETIMEDOUT;
}
Expand Down

0 comments on commit 263b6bc

Please sign in to comment.