]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/bnx2x-Legacy-speeds-autoneg-failures.patch
Disable build of xen kernel.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / bnx2x-Legacy-speeds-autoneg-failures.patch
1 From 44722d1d216c9dd4536de5f88fe8320b07e68a96 Mon Sep 17 00:00:00 2001
2 From: Eilon Greenstein <eilong@broadcom.com>
3 Date: Wed, 14 Jan 2009 06:44:21 +0000
4 Subject: bnx2x: Legacy speeds autoneg failures
5 Acked-by: Karsten Keil <kkeil@novell.com>
6 Reference: bnc#472500
7
8 10M/100M autoneg was not establishing link.
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 | 10 ++++++++--
15 1 files changed, 8 insertions(+), 2 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 @@ -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;