]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/bnx2x-Handling-PHY-FW-load-failure.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / bnx2x-Handling-PHY-FW-load-failure.patch
CommitLineData
2cb7cef9
BS
1From 16b311cc29806bb968746c1a752a087b32841af9 Mon Sep 17 00:00:00 2001
2From: Eilon Greenstein <eilong@broadcom.com>
3Date: Wed, 14 Jan 2009 06:44:24 +0000
4Subject: bnx2x: Handling PHY FW load failure
5Acked-by: Karsten Keil <kkeil@novell.com>
6Reference: bnc#472500
7
8If the default PHY version (0x4321) is read - the PHY FW load failed
9
10Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
11Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
12Signed-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
17Index: 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