Received: by 10.192.165.156 with SMTP id m28csp72878imm; Tue, 10 Apr 2018 16:42:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+0IFxNVKDF6s+EJkxw5i9msYm6FhNh8jfxb7mCj5nJBsDFvX5zgph6R2nu4Dvjq3Z24xRF X-Received: by 10.101.93.4 with SMTP id e4mr1673866pgr.343.1523403733780; Tue, 10 Apr 2018 16:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403733; cv=none; d=google.com; s=arc-20160816; b=zSSDuqo/XqAlgpzajVsfDjy0sNOrzHPDDVf9Yjl/kKmJvdK8q31T6DWN6FPAuRQUAQ Fhy3ncugKj/uhOzNLC+TjP6F2MH1dspUKdsYDxBBwiODPEuQ/Dhzxqx1p+IsHOFtifQ6 VtUKjkwT2fHZT1WMWSrQF68NIGFY13gP81Q3XTcc/eJMHW1au8D/1xBexmY7hZeOMwC5 +IU2hnmM/KQjigEDynQOYtUGfFHXWlzLm3mk7+7xO/dXY7NKuidqTvLa4rBAdsSKaPKd ChUTNYY8UoOrgS8vZ/OlqP6bLfKvcQuDLoKqK5tNmEkNwB0kAvXwpJeHNG2yROKD/bCM PXgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1ZPnSbaJJbDrT+QGEPOjzn5RHnwriStwbMeuIMgkXNM=; b=Gy3mbUc+PX9v0Dhr3XolqUnNIQulyM4Ce9/4alvIPC41Cp8EWkuz0Wi1LXuqZsxn1a U5spwlVhVgiJ8AEltSP/5LE0KqfjvaZJRsT+iD76sVuC9cxOxmGkuQyC9Hv38gwTUYwE gYFl14emzyo/q9/BqwgSalh32OSW6ocveiTFMarqWyZ2QW1AeJdsruDseVsMinF1k48l JpYEY8A/LVTksek8via57aOI9y9MmFksStrOy3082JfSRv9njf0YF+AItxMpE8HZ7/7B mrXDK0MWX2m/3y4fsRZyjrTeB/a8f0YaWG1NPSbntlNcRKER/nRgCtwduTBvmhh4AitT vnyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 64-v6si3481398ply.528.2018.04.10.16.41.37; Tue, 10 Apr 2018 16:42:13 -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; 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 S1753584AbeDJW1P (ORCPT + 99 others); Tue, 10 Apr 2018 18:27:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37778 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751882AbeDJW1M (ORCPT ); Tue, 10 Apr 2018 18:27:12 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A93CFCED; Tue, 10 Apr 2018 22:27:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fuyun Liang , Peng Li , "David S. Miller" , Sasha Levin Subject: [PATCH 4.15 015/168] net: hns3: add Asym Pause support to phy default features Date: Wed, 11 Apr 2018 00:22:37 +0200 Message-Id: <20180410212800.861008811@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fuyun Liang [ Upstream commit f16121c80c8ee4dab3c41363cb8b24f8d8eaf45f ] commit c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization") adds default supported features for phy, but our hardware also supports Asym Pause. This patch adds Asym Pause support to phy default features to prevent Asym Pause can not be advertised when the phy negotiates flow control. Fixes: c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c @@ -17,6 +17,7 @@ #define HCLGE_PHY_SUPPORTED_FEATURES (SUPPORTED_Autoneg | \ SUPPORTED_TP | \ SUPPORTED_Pause | \ + SUPPORTED_Asym_Pause | \ PHY_10BT_FEATURES | \ PHY_100BT_FEATURES | \ PHY_1000BT_FEATURES)