Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2022642imu; Fri, 14 Dec 2018 04:39:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/XTiOvZASyfdaucau/S/l3kxBJH0J1SY7AlNU4+iOgoVc0NXgbxH7sJfMHysVvdbKfqbIPn X-Received: by 2002:a63:d005:: with SMTP id z5mr2616162pgf.64.1544791175479; Fri, 14 Dec 2018 04:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791175; cv=none; d=google.com; s=arc-20160816; b=tyacyfHWT5+Ad3jte14zci2Ix8pdsbur6KdcL2DiFzrTVXHmDJS/nk+vWYYjUWGGgT 8ryh1/7py0uGkTpNLOgiOL8Wgc6mLp/Ky+szqlsOFKBATHnNO7efr+5TtIDhiGb5qhS7 b0JKxKXriCvU3qZso1WoxMiWTdPZyStMKomIk2VCH9nCrewsKJSzi3jswAvTARn3aETr U8SV96yPUb/U7pDTjnZkQqzFneN6CG6tTtKqixtMtVbqpmOU5yF7r04N3ydXj2wuxkey VwIMPaYiwimNuxAAJBE1ik35l76t/e0+haY4oyyBGkh6IryEpJBmPRZJf9MOmfuSN8pT vXVw== 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=Y1EvTDOB7oDm3YN9fP+myG7I6xsXbC+NgnRDQ/WD2Hg=; b=xXOwEImmzhlpmck+KC5vQbYSJbqUxU4tcIVfMX183yfpwi5QKDc6XySn+Ac5UL7yOk u9SCoUeljJ4hOUoKGN2+3hX+pNvm91TbthWQNf1BGIq2JlMXmhoAbe6vY4+tVNa3hkId f2XBy3I/xNPfqJm3GXjctPMuJBa/1DTp0xCezeEtywCv91zGnlm5qZ6dHRPyGclPNWzj 2veijZXFa4+KREoS0NjMbqaoLScxmpqfXM9v9089SfubnnV6TEZNpNTtKHClNxTA4kL3 8EO0W63rolrIbuJsVN+IhPus1CpKU6jgbWYKE5t68xGD0LAlZg4wTHe314KyXSE2gptZ i/fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jzsk1cpd; 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 d125si3816636pgc.418.2018.12.14.04.39.21; Fri, 14 Dec 2018 04:39:35 -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=jzsk1cpd; 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 S1730741AbeLNMFi (ORCPT + 99 others); Fri, 14 Dec 2018 07:05:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:50438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727579AbeLNMFg (ORCPT ); Fri, 14 Dec 2018 07:05:36 -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 679E721479; Fri, 14 Dec 2018 12:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789135; bh=4JHD5KkODVcMlZGbQnW0kd1neWotDKsAnNBMi5hVgHI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jzsk1cpdo8Tz4h4EQWvUDTYiR/MlcgrK22sybD+u1x7X4MkWU50RtA3aeUw3aP+bb RxoybNrx5s3aE7ELsm3veBtqvESg36j0vRDQQkQSWm1szBcmLr/JlwBKcRQb2fHGHT UnrJTZ3UnRjVGpp4kPg+04vLEPqgTjqYCvy1sAek= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Josh Elsasser , Andrew Bowers , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.19 108/142] ixgbe: recognize 1000BaseLX SFP modules as 1Gbps Date: Fri, 14 Dec 2018 12:59:53 +0100 Message-Id: <20181214115751.371163240@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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. ------------------ [ Upstream commit a8bf879af7b1999eba36303ce9cc60e0e7dd816c ] Add the two 1000BaseLX enum values to the X550's check for 1Gbps modules, allowing the core driver code to establish a link over this SFP type. This is done by the out-of-tree driver but the fix wasn't in mainline. Fixes: e23f33367882 ("ixgbe: Fix 1G and 10G link stability for X550EM_x SFP+”) Fixes: 6a14ee0cfb19 ("ixgbe: Add X550 support function pointers") Signed-off-by: Josh Elsasser Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c index a8148c7126e5..9772016222c3 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c @@ -2248,7 +2248,9 @@ static s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw, *autoneg = false; if (hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 || - hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1) { + hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1 || + hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core0 || + hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1) { *speed = IXGBE_LINK_SPEED_1GB_FULL; return 0; } -- 2.19.1