Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3510732imu; Mon, 7 Jan 2019 04:50:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/XIyKZOPauLsq57lmQggWju4pYbCIGYn0YqJmY3d9S6/rGnKyASONQ2HFZPaPZfDKOrgRmI X-Received: by 2002:a62:1484:: with SMTP id 126mr62125419pfu.257.1546865452772; Mon, 07 Jan 2019 04:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546865452; cv=none; d=google.com; s=arc-20160816; b=M+OogMbMJ+Vwb4r7S2oSTRHrjVPrnHShpF9coJJjkWPTtzW2A3MQjZazB06XIwX9c3 A9URxxO5asLSdTcXN0OIdZslygCniK0wApv/mBlPFMbZd28DPd5tRra43vchWE40m1UQ 9KAd8Ef2/2WTiDErdOY63YU2AX2BygKOSleVgbx+OWQlE8BYK7A64M1nae8q3HVCw4Bs NoQO8rDk2q+x/fVj72stifTC4up0iN9g0Yag5Pir48N97r7yk+zCnSPYxsfzHHDgE3rl QivsrPFEdDl8vcoZNwOpgOGR1DNTD69Sj2OMCYl3KjZMP805OUFJP+V6S4+qg8nmpPXM rxjA== 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=HzeWKBEqNFVG+jJSOCWRS0heHbXk1ezpHgnou/FVRAY=; b=FScqKCfmQuwkp4auMLVAemraTr+0g6TdsMiiqD4T6KNTKr0vm95GaoWcajmybW0BSJ hEAm1RqkYjAaoDMm5U6n/OJn71PvUX990GNdW0vYGygHhAgW4Mwk1jYjMNZ7cTskztqm TC9s3ZpsfQJBkoe3bG6cLrtaF592MwVI3ZVaBRRWrFgK1eOm+phs3EU9xwzVOpyWg2u0 VzgvWhkSFbvkRU/KRWjHaBNXenYZhMntQPt73+GzfBZOYVoNvfZmXamehzEE4fBFmCdh IbR/FBXuEfbOoBrGQMybxKyOj1ljBs/1sDtku02ZTcbl/qqE5BC3cIJfU4fBo9D431G4 zFhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="bAYzgz/p"; 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 g5si16919852plt.273.2019.01.07.04.50.37; Mon, 07 Jan 2019 04:50:52 -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="bAYzgz/p"; 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 S1729199AbfAGMsh (ORCPT + 99 others); Mon, 7 Jan 2019 07:48:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:39238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728540AbfAGMsc (ORCPT ); Mon, 7 Jan 2019 07:48:32 -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 95A71206BB; Mon, 7 Jan 2019 12:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865312; bh=oDZnEOVhheEY33C37vyNWFRfnTOZXzzDB9UC0Gqd8NE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bAYzgz/p8CMGyKTUAdmeMAsIJjUH80+iODrUk/ySdsRH++D8tzjF5UyHZ7kDgN/YD bs0Rm1JP7xkRrZW6fyi65qoXGyX8v1MwJv3T9/POgvNl6uWhMH4hGeqsBIV7V8vGEB O1ZXLvgA3BmEaFx74WiEVaI7jgrkWU9XOpOi8e1o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Antoine Tenart , "David S. Miller" Subject: [PATCH 4.19 051/170] net: mvpp2: fix the phylink mode validation Date: Mon, 7 Jan 2019 13:31:18 +0100 Message-Id: <20190107104459.146131396@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104452.953560660@linuxfoundation.org> References: <20190107104452.953560660@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Antoine Tenart [ Upstream commit 1b451fb2051b464b9758c09a3492104403252e2b ] The mvpp2_phylink_validate() sets all modes that are supported by a given PPv2 port. An mistake made the 10000baseT_Full mode being advertised in some cases when a port wasn't configured to perform at 10G. This patch fixes this. Fixes: d97c9f4ab000 ("net: mvpp2: 1000baseX support") Reported-by: Russell King Signed-off-by: Antoine Tenart Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -4293,6 +4293,7 @@ static void mvpp2_phylink_validate(struc case PHY_INTERFACE_MODE_XAUI: case PHY_INTERFACE_MODE_NA: if (port->gop_id == 0) { + phylink_set(mask, 10000baseT_Full); phylink_set(mask, 10000baseCR_Full); phylink_set(mask, 10000baseSR_Full); phylink_set(mask, 10000baseLR_Full); @@ -4310,7 +4311,6 @@ static void mvpp2_phylink_validate(struc phylink_set(mask, 10baseT_Full); phylink_set(mask, 100baseT_Half); phylink_set(mask, 100baseT_Full); - phylink_set(mask, 10000baseT_Full); /* Fall-through */ case PHY_INTERFACE_MODE_1000BASEX: case PHY_INTERFACE_MODE_2500BASEX: