Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107Ab1CSUiE (ORCPT ); Sat, 19 Mar 2011 16:38:04 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:55759 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757286Ab1CSUiA (ORCPT ); Sat, 19 Mar 2011 16:38:00 -0400 Date: Sat, 19 Mar 2011 13:38:38 -0700 (PDT) Message-Id: <20110319.133838.71107089.davem@davemloft.net> To: eric.dumazet@gmail.com Cc: oliver@neukum.org, anca.emanuel@gmail.com, piotr@hosowicz.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, romieu@fr.zoreil.com, torvalds@linux-foundation.org Subject: Re: [PATCH] r8169: fix a bug in rtl8169_init_phy() From: David Miller In-Reply-To: <1300549151.2831.32.camel@edumazet-laptop> References: <201103191631.07952.oliver@neukum.org> <1300548821.2831.28.camel@edumazet-laptop> <1300549151.2831.32.camel@edumazet-laptop> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1576 Lines: 44 From: Eric Dumazet Date: Sat, 19 Mar 2011 16:39:11 +0100 > [PATCH] r8169: fix a bug in rtl8169_init_phy() > > commit 54405cde7624 (r8169: support control of advertising.) > introduced a bug in rtl8169_init_phy() > > Reported-by: Piotr Hosowicz > Signed-off-by: Eric Dumazet Applied to net-2.6, thanks Eric. Linus, this is definitely the bug you were seeing too. > Cc: Oliver Neukum > Cc: Francois Romieu > --- > drivers/net/r8169.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c > index 5e40351..493b0de 100644 > --- a/drivers/net/r8169.c > +++ b/drivers/net/r8169.c > @@ -2685,9 +2685,9 @@ static void rtl8169_init_phy(struct net_device *dev, struct rtl8169_private *tp) > rtl8169_set_speed(dev, AUTONEG_ENABLE, SPEED_1000, DUPLEX_FULL, > ADVERTISED_10baseT_Half | ADVERTISED_10baseT_Full | > ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full | > - tp->mii.supports_gmii ? > + (tp->mii.supports_gmii ? > ADVERTISED_1000baseT_Half | > - ADVERTISED_1000baseT_Full : 0); > + ADVERTISED_1000baseT_Full : 0)); > > if (RTL_R8(PHYstatus) & TBI_Enable) > netif_info(tp, link, dev, "TBI auto-negotiating\n"); > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/