Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2934029imm; Sun, 30 Sep 2018 08:07:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61CUFe9TjOj7BN6M60eJvHr7BX1ONpHJvcNmzcCj+wWdsY3ZAhOm25QawCItxlxBQZXdYzE X-Received: by 2002:a17:902:8205:: with SMTP id x5-v6mr7806140pln.55.1538320029050; Sun, 30 Sep 2018 08:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538320029; cv=none; d=google.com; s=arc-20160816; b=AcqTYeMYQqBuzcAzzWHyQ3BZiWaoZUsbXmUBnXYop1PD4Y8N1hAjIe4dXAytjtVmiR kIffL8WLQLKYm/sbjfyh755z4HSXGPwa7bRW4Qs27Iwvvwc3j5hl9izH2WX4DNtB/2SI mHHic5ElvrYFf/FRf3gC8h9GhIm6Vjlbo6+Rzy4zEtCVuzhdmQ5bZdCxrfzzXuoS98TK K00osznslTHVZgsI+6s17x9KIwe88ZfWWd3e4PLooaEYbhyDAWKk2Of2GOoORAHIhGEs gXQmw3TLvlwaQA5pjqu5bXyV7CLK6zNGqxlWolb7NSsvMx+p8J7Rzmu8DJezRWCaZSVV VWDA== 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=CiGhynYwHUd0QbJmWXOqG4dVzbYAs0R2uRMyea4O9s4=; b=weYXEmHUkCjTBiCgRUjs5QpbHpiPe9ZwlCNWfNyt3UyhSN+fuwEpdtgrSXIzF7wOpV 2VmTWFy9ZPfRHGTrw/6kete+Hv/brUFDBv7AhQdar1QmECOkDukgGaDNrTy8xEZMb2P0 NsXMl0tVNN9I46hy9vpqB//8Bq8oCLvcDI8j5m6/R1UWMUuZ3sHkHQKDJUXFBXl7PfMu eyUSB0+KBHzOlPQQNEsTNt29466aA1ysQmotFTk9k62x5HwFTV7KHv6/ECQ1qM0QEzHR AGvBneDb3W45USaLdbwJdOVty6R7JUwoeSF353DMqvMr3HzgZygPbk0UMlIGvx8IUSh+ LHfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=D4PXt5af; 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 b2-v6si9119350pgg.412.2018.09.30.08.06.54; Sun, 30 Sep 2018 08:07:09 -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=D4PXt5af; 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 S1728469AbeI3VkI (ORCPT + 99 others); Sun, 30 Sep 2018 17:40:08 -0400 Received: from sonic315-8.consmr.mail.gq1.yahoo.com ([98.137.65.32]:34478 "EHLO sonic315-8.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727746AbeI3VkI (ORCPT ); Sun, 30 Sep 2018 17:40:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1538320005; bh=CiGhynYwHUd0QbJmWXOqG4dVzbYAs0R2uRMyea4O9s4=; h=Date:From:Subject:To:Cc:From:Subject; b=D4PXt5afVbOjr8AwCOJC3uwOCzDYM+9YtJ5YFQWGpOS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S38cTY 9D6zNibCpacbXexUTpoy1tGO3YPXS4UkKv7exE4fz1F3s3mdiLdRBMp5FNS5haEyEQm8WpE3VgjY GgobbyxZqZ9oh62HYq4x2hJxd7Jfar5usUETsuj6jCjCALu3wfPpJDNrjJjkvAWoyAQFJyiXFXTE ZhfYGuKC3bj8hEgoAduOfhx_i6ntTZ0GIaRXMTEwmiJzDWMlBiEHl.2Coq2AxC18wMBpJlEZWj9H WptlbDf.1uZPAASusoFllOL1ERrn1ei_Covxm5kAQlb8N8vxGwmpFxbDfdLhmEE.5x2MBhsZEbz9 VGJJQwd.4 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Sun, 30 Sep 2018 15:06:45 +0000 Received: from CPE00fc8de26033-CM00fc8de26030.cpe.net.cable.rogers.com (EHLO localhost) ([99.228.156.240]) by smtp413.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ff2655482ab7b0495e0ed29de7555ab0; Sun, 30 Sep 2018 15:06:43 +0000 (UTC) Date: Sun, 30 Sep 2018 11:06:39 -0400 From: "Alex Xu (Hello71)" Subject: [PATCH net v2] r8169: always autoneg on resume To: 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: <1538319728.z22jaatdgh.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: 10bc6a6042c9 ("r8169: fix autoneg issue on resume with RTL8168E") 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 =