Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2750045imj; Mon, 11 Feb 2019 07:56:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IZCj27GC54B+2f4t6PcXFdM+DzQeQ7Ztk2uPzKDfSIeZQOrqjN+l96sVwsVtbcCsjCk73iQ X-Received: by 2002:a17:902:9a95:: with SMTP id w21mr19249432plp.118.1549900618311; Mon, 11 Feb 2019 07:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900618; cv=none; d=google.com; s=arc-20160816; b=xC4Ncn5GZzB22xggmdq95XOb/CGkBwQO9MofnaPZyB8ma/EbwxN6n8Yp4/hMj+0q0d e2aGpmO/tQzGMy9+MjhMU5VC1El0TxAV2rseDAE9iSKcPgVgEzjXIxIKUw7EHNRJ229F LtZfkOmyl09jIeH/Y8Qga9eRw1f3/a33BbPGcTGULPl/L0tpOlbcBg8BZp9ogHtkyArO ntbS7kQ9DLPB4dvgkgXVLa4ZeAzGmcXiM5CQNnnZWZjZ8q3YV0zqDAzEUz2vFfEN+phI /lrREfek+31NYHHF9VKysrn2oxHyHFvyas0BRks4p1jsB8SQMe9gpkS0KooxQRqQC+83 IHdA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YO2+Iy1pxMevAGvyENvp3n5EPWbbSL+bHUsDOd/FL/k=; b=v3JL2DvG9E4Xb/Q7lAfdGwjnsL/e9NrlVIy77/Oplvx4z2Sf+D0WA22XCVQEuzuGFZ SYFp+z20pYR1r0swDCtdunF2Ptxkb40PnYovWVsfTFdjHSwwwNdA0k04CTa/xyHVI+GC CgL6n+LlCtXI9yCDd1kBFuBFIt9DFkUwpN/M/fVA/xzxN7IXVQ3FQeAtGAuUv4kb6bkl U5Rl2eB38647iymt5corRgHaHbQubYJBTMXadT5tta2mPUJN1jBO1seLd/i8GOQ6dHHX zwN0p0dB/Oi4xL9NXa0xoNscKMe3PRhJZhYkLJoD3DLaBZ0xc2VmUsSzvruPHJgB38FL ScLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LwHHWnM9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si10460861pfi.157.2019.02.11.07.56.42; Mon, 11 Feb 2019 07:56:58 -0800 (PST) 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=@kernel.org header.s=default header.b=LwHHWnM9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730502AbfBKOf3 (ORCPT + 99 others); Mon, 11 Feb 2019 09:35:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:44080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731021AbfBKOf1 (ORCPT ); Mon, 11 Feb 2019 09:35:27 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 926902080F; Mon, 11 Feb 2019 14:35:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895726; bh=3SzWclKPZPnz2RWV8POlGw1gnVzi84FP4s+fVzn+f9k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LwHHWnM9nhJhtMEonOGCoIWtsiPLvtmBb2e9ILTnOau/dkoywdPOxwpD7HwJmPMG6 GdnKaanfNMOEiqskqSKKDEjbtD/jKIpRVpapYUZxqf18t7DogNl6w+G42D17/1zQC8 oK30ETZPtDdH4aEzO/DyEbfuBUsQHdN3TWFmwV5k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Yonglong Liu , "David S. Miller" Subject: [PATCH 4.20 302/352] Revert "net: phy: marvell: avoid pause mode on SGMII-to-Copper for 88e151x" Date: Mon, 11 Feb 2019 15:18:49 +0100 Message-Id: <20190211141906.069774846@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Russell King [ Upstream commit c14f07c6211cc01d52ed92cce1fade5071b8d197 ] This reverts commit 6623c0fba10ef45b64ca213ad5dec926f37fa9a0. The original diagnosis was incorrect: it appears that the NIC had PHY polling mode enabled, which meant that it overwrote the PHYs advertisement register during negotiation. Signed-off-by: Russell King Tested-by: Yonglong Liu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/marvell.c | 12 ------------ 1 file changed, 12 deletions(-) --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -847,8 +847,6 @@ static int m88e1510_config_init(struct p /* SGMII-to-Copper mode initialization */ if (phydev->interface == PHY_INTERFACE_MODE_SGMII) { - u32 pause; - /* Select page 18 */ err = marvell_set_page(phydev, 18); if (err < 0) @@ -871,16 +869,6 @@ static int m88e1510_config_init(struct p err = marvell_set_page(phydev, MII_MARVELL_COPPER_PAGE); if (err < 0) return err; - - /* There appears to be a bug in the 88e1512 when used in - * SGMII to copper mode, where the AN advertisement register - * clears the pause bits each time a negotiation occurs. - * This means we can never be truely sure what was advertised, - * so disable Pause support. - */ - pause = SUPPORTED_Pause | SUPPORTED_Asym_Pause; - phydev->supported &= ~pause; - phydev->advertising &= ~pause; } return m88e1318_config_init(phydev);