Received: by 10.213.65.68 with SMTP id h4csp1864719imn; Mon, 19 Mar 2018 15:39:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELupMJI6eGfcNeQ5YLrAlemK9oYxpiHzZsZ3oXFpr6iRpy359SYQqPHsawVyflUL7GgMM287 X-Received: by 2002:a17:902:52c7:: with SMTP id a65-v6mr14091624pli.249.1521499151490; Mon, 19 Mar 2018 15:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521499151; cv=none; d=google.com; s=arc-20160816; b=HeHu6eycCEif+Nz+oiTwuoqCyWO0wIAqLrCvHG7Z6Z16haqgEOjd8KIOrWQ2frXwb7 iYGk2a8jMRKvi7Kf1ySudSIZuoEfvIwUYkN9PM2WWQZgTAsErn3J3EOCWDG1/Bym9aWb wxLZu/dIKHKtPavZNJzEl9mRRqAJgd4aD3ujm8ixYvds1b8clkrZcVUgVUsLdMEja0rK VsAr/YcdaXxHj7gT/NFE20oA1L/ZIEiGeWkjVzJ0lK0HerPSPSAPVY/eZ45cZqnv6ybb 2KDI/QPBNjpftGhFjCflvbTjtQd4d33q3XLn5XwPtjo8X8DOFPMjTGTUnoKmu4DXlHCO d8Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=jINyyNMM5NXNTuAwU93X9SjJWa/krbf0FYK1YAERdBU=; b=uE073lmHSCh2K9bCPlJwj2scpOBKLf1MnAfQpGofjJqReW4B3xmdLESfiFydN3EhAV y4UDxS7UJQN5MCDRr9acGkD6BVvrf96WQpshwzDAoJa8FwAtJq9AcgKQxI6tOqBkw+Cx +x2lDYC9tWLYdPf31UyTBFlQ6+ivpvMAbhJHdpxbG6Ocbu4OoJeoaoc/wVrqgJ9PKJrb IoYGTF48nArpAu0sQVKOLZQ1MfZNQURb9p3qxeVKBHm2/XCZlY87P5pTzWdn8i7Qxu2U 2JtI70ZHnofzrn562ZaLiZjut8fxUiiU/KkRERTQ27Ti2rV+8yd26Ra1DV4lIPTEPPzk 61wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=O7SlWX4x; 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=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g79si193988pfj.100.2018.03.19.15.38.57; Mon, 19 Mar 2018 15:39:11 -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=@microsoft.com header.s=selector1 header.b=O7SlWX4x; 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=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933608AbeCSPrp (ORCPT + 99 others); Mon, 19 Mar 2018 11:47:45 -0400 Received: from mail-by2nam01on0103.outbound.protection.outlook.com ([104.47.34.103]:19764 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933034AbeCSPrU (ORCPT ); Mon, 19 Mar 2018 11:47:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jINyyNMM5NXNTuAwU93X9SjJWa/krbf0FYK1YAERdBU=; b=O7SlWX4xW+g4G06IlWAkGDNQnFP9S7UuxOJenNbUHkdWE83pv5faEa2qalOmvnhTE6av6ZXv1raeGgVsScb1bIj8IPvURUInUxM9fzfMe4Tbav0/aBmmtzwpcDUxPjCYIqqogpAR2X5vE86sBff9ww+hik64EUdVzhoiZzbwVsQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1013.namprd21.prod.outlook.com (52.132.133.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:47:14 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:47:14 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Fuyun Liang , Peng Li , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 015/124] net: hns3: add Asym Pause support to phy default features Thread-Topic: [PATCH AUTOSEL for 4.15 015/124] net: hns3: add Asym Pause support to phy default features Thread-Index: AQHTv5mNK/W+dm1Z8Uaqo3X96jIcDg== Date: Mon, 19 Mar 2018 15:47:14 +0000 Message-ID: <20180319154645.11350-15-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1013;7:AX8YhLMtAm17au/yDOSlAZs+1NPp0XkZA1nKlQGqvke6daax6H7Tp5h0wGdg1N664gKkGjRZ/gRA8PRCTr4HDQiSOusALiecvQ9/kXkgSOMdhJ8pNMiJQEJYPSQpalAfvU8qq2nU0HGVkGVZ6Jw3PrvFxV90ZzwOPAuwk481qMv9kuGZGR4oo40ir6wip6ouF0GGTHbSjDnse8UlzSbnSDjL+Ty4ECLQqgRn+Nj18PRDSUVCCf3SMkMbtDItcJg4;20:/84o0CBisT7DYv1FNPDa25fk7SMWfzpSObnoY4Wu9S9hWjUplqUds16yM8KDYzasWvgDbjbjFoII/pj+MPoSemS+kxPcWBdX5wdyRWqR39Sr3hJWA5p7BRErHCN71ud1lsF8kcv2aPunPaqdVIs08e3UjoUiE7dfHvzF0ZaPdQU= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0c77f921-97e0-4f11-d624-08d58db0afad x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1013; x-ms-traffictypediagnostic: DM5PR2101MB1013: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(50582790962513); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231221)(944501300)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1013;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1013; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39860400002)(346002)(376002)(39380400002)(189003)(199004)(86612001)(316002)(26005)(72206003)(4326008)(25786009)(110136005)(10290500003)(86362001)(54906003)(53936002)(36756003)(107886003)(3280700002)(14454004)(22452003)(6506007)(5660300001)(68736007)(99286004)(186003)(478600001)(76176011)(2950100002)(10090500001)(102836004)(6116002)(5250100002)(2501003)(97736004)(3660700001)(106356001)(81156014)(81166006)(8676002)(8936002)(7736002)(305945005)(2900100001)(105586002)(3846002)(1076002)(66066001)(6436002)(2906002)(6512007)(6486002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1013;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 0+fM/Q+SgG9J5ki/kwnr9Vs7VTF7piEGhP5e9vPb6srOgSYHtmv0dV08nTLKkFvWt5kKQ+g5Zqv80kO7tDuDYStYcVnrHT2KUZ2IhQQgOPw82xhUbyMIhjRNiPX/sGeJn7SnXQhLEsEyFMdhVPHTfFmEB+s4s/df81miozNZ1HWffVdgXqzyQK95y+/EGe0oiJvJyycCjasj9z5VDsiPbY+13jsamiI0Q0U71CUsawCVpcKQW6AkEB35CUjSC5Whvrq3e47Cl9z59dRoPcQgfOPEC4fkO8ovjt+HO0VXkp7wEtsAe+5upY0EWZS3T1qrMelmmNKLs00jPit3MdLl/A== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c77f921-97e0-4f11-d624-08d58db0afad X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:47:14.2488 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1013 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 initia= lization") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/driv= ers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c index 7069e9408d7d..22be638be40f 100644 --- 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) --=20 2.14.1