]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From 16b311cc29806bb968746c1a752a087b32841af9 Mon Sep 17 00:00:00 2001 |
2 | From: Eilon Greenstein <eilong@broadcom.com> | |
3 | Date: Wed, 14 Jan 2009 06:44:24 +0000 | |
4 | Subject: bnx2x: Handling PHY FW load failure | |
5 | Acked-by: Karsten Keil <kkeil@novell.com> | |
6 | Reference: bnc#472500 | |
7 | ||
8 | If the default PHY version (0x4321) is read - the PHY FW load failed | |
9 | ||
10 | Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> | |
11 | Signed-off-by: Eilon Greenstein <eilong@broadcom.com> | |
12 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
13 | --- | |
14 | drivers/net/bnx2x_link.c | 7 ++++--- | |
15 | 1 files changed, 4 insertions(+), 3 deletions(-) | |
16 | ||
17 | Index: linux-2.6.27-bnx2x_2/drivers/net/bnx2x_link.c | |
18 | =================================================================== | |
19 | --- linux-2.6.27-bnx2x_2.orig/drivers/net/bnx2x_link.c | |
20 | +++ linux-2.6.27-bnx2x_2/drivers/net/bnx2x_link.c | |
21 | @@ -4404,10 +4404,11 @@ static u8 bnx2x_8073_common_init_phy(str | |
22 | ext_phy_addr[port], | |
23 | MDIO_PMA_DEVAD, | |
24 | MDIO_PMA_REG_ROM_VER1, &fw_ver1); | |
25 | - if (fw_ver1 == 0) { | |
26 | + if (fw_ver1 == 0 || fw_ver1 == 0x4321) { | |
27 | DP(NETIF_MSG_LINK, | |
28 | - "bnx2x_8073_common_init_phy port %x " | |
29 | - "fw Download failed\n", port); | |
30 | + "bnx2x_8073_common_init_phy port %x:" | |
31 | + "Download failed. fw version = 0x%x\n", | |
32 | + port, fw_ver1); | |
33 | return -EINVAL; | |
34 | } | |
35 |