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:
6044735
)
bnx2x: Add rmb to read status block indices on load
author
Eilon Greenstein
<eilong@broadcom.com>
Mon, 2 Mar 2009 07:59:27 +0000
(07:59 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 3 Mar 2009 06:32:38 +0000
(22:32 -0800)
Add rmb to read status block indices on load
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x_main.c
b/drivers/net/bnx2x_main.c
index fbd0f88fc81b044f37ccc6718033b6c6df1332c0..e4d54e14fd534cccc9bce62644e247142d4c166c 100644
(file)
--- a/
drivers/net/bnx2x_main.c
+++ b/
drivers/net/bnx2x_main.c
@@
-5154,6
+5154,10
@@
static void bnx2x_nic_init(struct bnx2x *bp, u32 load_code)
bnx2x_update_fpsb_idx(fp);
}
+ /* ensure status block indices were read */
+ rmb();
+
+
bnx2x_init_def_sb(bp, bp->def_status_blk, bp->def_status_blk_mapping,
DEF_SB_ID);
bnx2x_update_dsb_idx(bp);