* [BNX2]: Fix 2nd port's MAC address.
@ 2007-01-25 5:35 Michael Chan
2007-01-25 23:50 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Michael Chan @ 2007-01-25 5:35 UTC (permalink / raw)
To: davem; +Cc: netdev
[BNX2]: Fix 2nd port's MAC address.
On the 5709, we need to add the proper offset to calculate the shared
memory base address of the 2nd port correctly. Otherwise, the 2nd
port's MAC address and other information will be the same as the 1st
port.
Update version to 1.5.4.
Signed-off-by: Michael Chan <mchan@broadcom.com>
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index ca5acc4..953808e 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -57,8 +57,8 @@
#define DRV_MODULE_NAME "bnx2"
#define PFX DRV_MODULE_NAME ": "
-#define DRV_MODULE_VERSION "1.5.3"
-#define DRV_MODULE_RELDATE "January 8, 2007"
+#define DRV_MODULE_VERSION "1.5.4"
+#define DRV_MODULE_RELDATE "January 24, 2007"
#define RUN_AT(x) (jiffies + (x))
@@ -5845,9 +5845,11 @@ bnx2_init_board(struct pci_dev *pdev, st
reg = REG_RD_IND(bp, BNX2_SHM_HDR_SIGNATURE);
if ((reg & BNX2_SHM_HDR_SIGNATURE_SIG_MASK) ==
- BNX2_SHM_HDR_SIGNATURE_SIG)
- bp->shmem_base = REG_RD_IND(bp, BNX2_SHM_HDR_ADDR_0);
- else
+ BNX2_SHM_HDR_SIGNATURE_SIG) {
+ u32 off = PCI_FUNC(pdev->devfn) << 2;
+
+ bp->shmem_base = REG_RD_IND(bp, BNX2_SHM_HDR_ADDR_0 + off);
+ } else
bp->shmem_base = HOST_VIEW_SHMEM_BASE;
/* Get the permanent MAC address. First we need to make sure the
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [BNX2]: Fix 2nd port's MAC address.
2007-01-25 5:35 [BNX2]: Fix 2nd port's MAC address Michael Chan
@ 2007-01-25 23:50 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-01-25 23:50 UTC (permalink / raw)
To: mchan; +Cc: netdev
From: "Michael Chan" <mchan@broadcom.com>
Date: Wed, 24 Jan 2007 21:35:45 -0800
> [BNX2]: Fix 2nd port's MAC address.
>
> On the 5709, we need to add the proper offset to calculate the shared
> memory base address of the 2nd port correctly. Otherwise, the 2nd
> port's MAC address and other information will be the same as the 1st
> port.
>
> Update version to 1.5.4.
>
> Signed-off-by: Michael Chan <mchan@broadcom.com>
Applied, thanks Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-25 23:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-25 5:35 [BNX2]: Fix 2nd port's MAC address Michael Chan
2007-01-25 23:50 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox