]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.drivers/bnx2x-Missing-rmb-when-waiting-for-FW-response.patch
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.drivers / bnx2x-Missing-rmb-when-waiting-for-FW-response.patch
CommitLineData
00e5a55c
BS
1From 5650d9d4cbf3898d3f9725ccad5dfca6bc086324 Mon Sep 17 00:00:00 2001
2From: Eilon Greenstein <eilong@broadcom.com>
3Date: Thu, 22 Jan 2009 06:01:29 +0000
4Subject: bnx2x: Missing rmb when waiting for FW response
5Acked-by: Karsten Keil <kkeil@novell.com>
6Reference: bnc#472500
7
8Waiting for the FW to response requires a memory barrier
9
10Signed-off-by: Michal Kalderon <michals@broadcom.com>
11Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
12Signed-off-by: David S. Miller <davem@davemloft.net>
13---
14 drivers/net/bnx2x_main.c | 1 +
15 1 files changed, 1 insertions(+), 0 deletions(-)
16
17Index: linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c
18===================================================================
19--- linux-2.6.27-bnx2x_2.orig/drivers/net/bnx2x_main.c
20+++ linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c
21@@ -6625,6 +6625,7 @@ static int bnx2x_stop_leading(struct bnx
22 }
23 cnt--;
24 msleep(1);
25+ rmb(); /* Refresh the dsb_sp_prod */
26 }
27 bp->state = BNX2X_STATE_CLOSING_WAIT4_UNLOAD;
28 bp->fp[0].state = BNX2X_FP_STATE_CLOSED;