]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.drivers/bnx2x-Legacy-speeds-autoneg-failures.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / bnx2x-Legacy-speeds-autoneg-failures.patch
CommitLineData
2cb7cef9
BS
1From 44722d1d216c9dd4536de5f88fe8320b07e68a96 Mon Sep 17 00:00:00 2001
2From: Eilon Greenstein <eilong@broadcom.com>
3Date: Wed, 14 Jan 2009 06:44:21 +0000
4Subject: bnx2x: Legacy speeds autoneg failures
5Acked-by: Karsten Keil <kkeil@novell.com>
6Reference: bnc#472500
7
810M/100M autoneg was not establishing link.
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 | 10 ++++++++--
15 1 files changed, 8 insertions(+), 2 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@@ -3882,9 +3882,15 @@ static u8 bnx2x_link_initialize(struct l
22 }
23
24 if (vars->phy_flags & PHY_XGXS_FLAG) {
25- if (params->req_line_speed &&
26+ if ((params->req_line_speed &&
27 ((params->req_line_speed == SPEED_100) ||
28- (params->req_line_speed == SPEED_10))) {
29+ (params->req_line_speed == SPEED_10))) ||
30+ (!params->req_line_speed &&
31+ (params->speed_cap_mask >=
32+ PORT_HW_CFG_SPEED_CAPABILITY_D0_10M_FULL) &&
33+ (params->speed_cap_mask <
34+ PORT_HW_CFG_SPEED_CAPABILITY_D0_1G)
35+ )) {
36 vars->phy_flags |= PHY_SGMII_FLAG;
37 } else {
38 vars->phy_flags &= ~PHY_SGMII_FLAG;