Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2396173imm; Sat, 29 Sep 2018 18:19:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV60UFZHLM1b00CqIc20Q7igs8Q5IcC0juWDVL8n1mdapI4cC+flbU9Vu5icFLR/A0QyzCWt/ X-Received: by 2002:a17:902:2d24:: with SMTP id o33-v6mr5152566plb.211.1538270363031; Sat, 29 Sep 2018 18:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538270363; cv=none; d=google.com; s=arc-20160816; b=YUKd2ZEcn8MIK86H/IZ8EfY77Iqj+zWAjbVnmjRo4g0hngig06xcBE47/ItoScZHMt zunOyaNUk8hFOYXQYmKz4neVvnVNAiBOsx4+8O7Dvy6nFcPwTLvdNilv/lfpGRWQZmMX spPhXtYHiJFEvpk6rQuES9C/gQQ7sTwx3Lh+rRkkkIaQYs5dlKOThwdQ9rICkNJvn46c Jv96l/O7RQoXvf7XKOsZYYLrFuG+lAc3nuN61Z8gbowIy85sFFiv5e2KkKx4Pd0vl+i8 uWteZpLINlqDg8PEkYAimacca5g8pxd2cC4AmGi7z4AJd4n6At+PuJv8ltBGcRjDKpiW Envw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:user-agent:cc:to:subject:from:date:dkim-signature; bh=UQ428NWUXHL7ibaMcNvOTU21SIKX6kwvSrmgLCGl5KM=; b=nuPfdibTOzz1XQ2HcTu+9UKjpBXR0HjDO6LdhYX+k2c3Is0hnqda34084JUVOTn8ha iPJd42jpQ52XDhqRsp5v7h1CXgO6Zqk7p6vQJ7b3gwY6eVauKdNP/3kQgen2aWqtz07I h63FHvAQIwKeEoQlGPCC92rd/kB8753UNJ9Wb4h+W7HNcumLpd3d89hQhgwmlmlsKYgH l/6frYqoqctc5wLZY7iUbW45Mef9Mqv4utqP7kFLirOrLJgerQ8QcqvVyP9P29Fs/JUn mI0sGReftZvFvSB6aBMFyltTgjoy4+/1nnA0559LIoeOpWl1M6QXe22KUNCka8b4Oifa d0fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=my0XXeKj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si8619001plo.210.2018.09.29.18.18.54; Sat, 29 Sep 2018 18:19:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=my0XXeKj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726993AbeI3Htd (ORCPT + 99 others); Sun, 30 Sep 2018 03:49:33 -0400 Received: from sonic317-28.consmr.mail.bf2.yahoo.com ([74.6.129.83]:42792 "EHLO sonic317-28.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbeI3Htc (ORCPT ); Sun, 30 Sep 2018 03:49:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1538270329; bh=UQ428NWUXHL7ibaMcNvOTU21SIKX6kwvSrmgLCGl5KM=; h=Date:From:Subject:To:Cc:From:Subject; b=my0XXeKjW3XuhwERCYrFCwWuV1XPwbUUkvvuDs9UL3Xg+lQciyJ18pYO3anL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ocIkJ9k0loYFP321q8sZbTEEAM2C_LzVQjOq67CF_p4Cr Rkv42g96ajm6DVcZNDQKPdytoAzwUA0HqE0Ug3uN6Wu8AXzRVOOGUhpHmQXLURWK7YwsDvJBhGc4 zWymucwkE2L1dLzAGr8_KQyOGYGovdQLZB1cMMtJjDQ0nGfKGfEroSrQGiJFEc9Oil4CkHSTpaU3 a9sQEJ33OX2mVlH6x9RethxjtM8vKGyaWCDZEeqSj9nzJyAYenpn8Fle2AKsqkWstzitDQQv9JVF ZsJkV_12y4Nw- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Sun, 30 Sep 2018 01:18:49 +0000 Received: from CPE00fc8de26033-CM00fc8de26030.cpe.net.cable.rogers.com (EHLO localhost) ([99.228.156.240]) by smtp403.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0dc7ae0cad24b72d1b84d4f466369641; Sun, 30 Sep 2018 01:18:45 +0000 (UTC) Date: Sat, 29 Sep 2018 21:18:41 -0400 From: "Alex Xu (Hello71)" Subject: [PATCH net] r8169: always autoneg on resume To: linux-netdev@vger.kernel.org Cc: hkallweit1@gmail.com, nic_swsd@realtek.com, davem@davemloft.net, linux-kernel@vger.kernel.org User-Agent: astroid/0.13.0 (https://github.com/astroidmail/astroid) Message-Id: <1538270023.zutwcuc82n.astroid@alex-desktop.none> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This affects at least versions 25 and 33, so assume all cards are broken and just renegotiate by default. Fixes: a2965f12fde6 ("r8169: remove rtl8169_set_speed_xmii") Signed-off-by: Alex Xu (Hello71) --- drivers/net/ethernet/realtek/r8169.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/re= altek/r8169.c index ab30aaeac6d3..db2f347c1463 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -4072,13 +4072,12 @@ static void rtl8169_init_phy(struct net_device *dev= , struct rtl8169_private *tp) =20 genphy_soft_reset(dev->phydev); =20 - /* It was reported that chip version 33 ends up with 10MBit/Half on a + /* It was reported that several chips end up with 10MBit/Half on a * 1GBit link after resuming from S3. For whatever reason the PHY on - * this chip doesn't properly start a renegotiation when soft-reset. + * these chips doesn't properly start a renegotiation when soft-reset. * Explicitly requesting a renegotiation fixes this. */ - if (tp->mac_version =3D=3D RTL_GIGA_MAC_VER_33 && - dev->phydev->autoneg =3D=3D AUTONEG_ENABLE) + if (dev->phydev->autoneg =3D=3D AUTONEG_ENABLE) phy_restart_aneg(dev->phydev); } =20 --=20 2.19.0 =