From patchwork Wed Jul 24 05:02:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaofeis X-Patchwork-Id: 11055935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D908414DB for ; Wed, 24 Jul 2019 05:03:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C051E284A3 for ; Wed, 24 Jul 2019 05:03:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B011228573; Wed, 24 Jul 2019 05:03:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32B87284A3 for ; Wed, 24 Jul 2019 05:03:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725909AbfGXFDO (ORCPT ); Wed, 24 Jul 2019 01:03:14 -0400 Received: from alexa-out-tai-01.qualcomm.com ([103.229.16.226]:26661 "EHLO alexa-out-tai-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfGXFDO (ORCPT ); Wed, 24 Jul 2019 01:03:14 -0400 Received: from ironmsg02-tai.qualcomm.com ([10.249.140.7]) by alexa-out-tai-01.qualcomm.com with ESMTP; 24 Jul 2019 13:03:12 +0800 X-IronPort-AV: E=McAfee;i="6000,8403,9326"; a="35255352" Received: from akronite-sh-dev01.ap.qualcomm.com ([10.231.215.213]) by ironmsg02-tai.qualcomm.com with ESMTP; 24 Jul 2019 13:03:00 +0800 Received: by akronite-sh-dev01.ap.qualcomm.com (Postfix, from userid 206661) id 3E23C1F617; Wed, 24 Jul 2019 13:02:59 +0800 (CST) From: xiaofeis To: davem@davemloft.net Cc: vkoul@kernel.org, netdev@vger.kernel.org, andrew@lunn.ch, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, vivien.didelot@gmail.com, f.fainelli@gmail.com, niklas.cassel@linaro.org, xiazha@codeaurora.org, xiaofeis Subject: [PATCH v2] net: dsa: qca8k: enable port flow control Date: Wed, 24 Jul 2019 13:02:56 +0800 Message-Id: <1563944576-62844-1-git-send-email-xiaofeis@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set phy device advertising to enable MAC flow control. Signed-off-by: Xiaofei Shen --- drivers/net/dsa/qca8k.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c index 232e8cc..c5ac426 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -2,7 +2,7 @@ /* * Copyright (C) 2009 Felix Fietkau * Copyright (C) 2011-2012 Gabor Juhos - * Copyright (c) 2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2015, 2019, The Linux Foundation. All rights reserved. * Copyright (c) 2016 John Crispin */ @@ -935,6 +935,8 @@ qca8k_port_set_status(priv, port, 1); priv->port_sts[port].enabled = 1; + phy->advertising |= ADVERTISED_Pause | ADVERTISED_Asym_Pause; + return 0; }