mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
bnx2x: Add rmb to read status block indices on load
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>
This commit is contained in:
parent
6044735d8d
commit
161197853d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user