diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-01-14 01:44:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-19 19:20:13 -0500 |
commit | 16b311cc29806bb968746c1a752a087b32841af9 (patch) | |
tree | b0908b62c283ed99fb67814ce2ecd7546c2c7ccd /drivers/net/bnx2x_link.c | |
parent | 44722d1d216c9dd4536de5f88fe8320b07e68a96 (diff) |
bnx2x: Handling PHY FW load failure
If the default PHY version (0x4321) is read - the PHY FW load failed
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/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index 2fd6be0cca13..b4527a4a60e3 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c | |||
@@ -4404,10 +4404,11 @@ static u8 bnx2x_8073_common_init_phy(struct bnx2x *bp, u32 shmem_base) | |||
4404 | ext_phy_addr[port], | 4404 | ext_phy_addr[port], |
4405 | MDIO_PMA_DEVAD, | 4405 | MDIO_PMA_DEVAD, |
4406 | MDIO_PMA_REG_ROM_VER1, &fw_ver1); | 4406 | MDIO_PMA_REG_ROM_VER1, &fw_ver1); |
4407 | if (fw_ver1 == 0) { | 4407 | if (fw_ver1 == 0 || fw_ver1 == 0x4321) { |
4408 | DP(NETIF_MSG_LINK, | 4408 | DP(NETIF_MSG_LINK, |
4409 | "bnx2x_8073_common_init_phy port %x " | 4409 | "bnx2x_8073_common_init_phy port %x:" |
4410 | "fw Download failed\n", port); | 4410 | "Download failed. fw version = 0x%x\n", |
4411 | port, fw_ver1); | ||
4411 | return -EINVAL; | 4412 | return -EINVAL; |
4412 | } | 4413 | } |
4413 | 4414 | ||