diff options
author | Yaniv Rosner <yaniv.rosner@broadcom.com> | 2010-11-01 01:32:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-01 09:21:38 -0400 |
commit | 650154bfd1ef3119e7c79f35447f0e11a5e4f7c6 (patch) | |
tree | 998a36ac612ea93b678c0e1c942067219da3afba /drivers/net | |
parent | cf1d972cb6393b9b042289739111773226861d6c (diff) |
bnx2x: Fix resetting BCM8726 PHY during common init
On BCM8726 based designs, the ports are swapped, hence the reset needs
to be asserted through port0 and not port1.
Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.c b/drivers/net/bnx2x/bnx2x_link.c index fdd7e0349466..488e251a2d3f 100644 --- a/drivers/net/bnx2x/bnx2x_link.c +++ b/drivers/net/bnx2x/bnx2x_link.c | |||
@@ -7152,7 +7152,7 @@ static u8 bnx2x_8726_common_init_phy(struct bnx2x *bp, | |||
7152 | (1<<(MISC_REGISTERS_GPIO_3 + MISC_REGISTERS_GPIO_PORT_SHIFT))); | 7152 | (1<<(MISC_REGISTERS_GPIO_3 + MISC_REGISTERS_GPIO_PORT_SHIFT))); |
7153 | REG_WR(bp, MISC_REG_GPIO_EVENT_EN, val); | 7153 | REG_WR(bp, MISC_REG_GPIO_EVENT_EN, val); |
7154 | 7154 | ||
7155 | bnx2x_ext_phy_hw_reset(bp, 1); | 7155 | bnx2x_ext_phy_hw_reset(bp, 0); |
7156 | msleep(5); | 7156 | msleep(5); |
7157 | for (port = 0; port < PORT_MAX; port++) { | 7157 | for (port = 0; port < PORT_MAX; port++) { |
7158 | u32 shmem_base, shmem2_base; | 7158 | u32 shmem_base, shmem2_base; |