From patchwork Fri Jul 19 02:53:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xiaofeis X-Patchwork-Id: 11049733 X-Patchwork-Delegate: agross@codeaurora.org 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 28D7B912 for ; Fri, 19 Jul 2019 03:00:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 164CA286D1 for ; Fri, 19 Jul 2019 03:00:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07940288BC; Fri, 19 Jul 2019 03:00:23 +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 514FE286D1 for ; Fri, 19 Jul 2019 03:00:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbfGSDAV (ORCPT ); Thu, 18 Jul 2019 23:00:21 -0400 Received: from alexa-out-tai-02.qualcomm.com ([103.229.16.227]:42783 "EHLO alexa-out-tai-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfGSDAV (ORCPT ); Thu, 18 Jul 2019 23:00:21 -0400 X-Greylist: delayed 366 seconds by postgrey-1.27 at vger.kernel.org; Thu, 18 Jul 2019 23:00:20 EDT Received: from ironmsg03-tai.qualcomm.com ([10.249.140.8]) by alexa-out-tai-02.qualcomm.com with ESMTP; 19 Jul 2019 10:54:13 +0800 X-IronPort-AV: E=McAfee;i="6000,8403,9322"; a="34578808" Received: from akronite-sh-dev01.ap.qualcomm.com ([10.231.215.213]) by ironmsg03-tai.qualcomm.com with ESMTP; 19 Jul 2019 10:54:01 +0800 Received: by akronite-sh-dev01.ap.qualcomm.com (Postfix, from userid 206661) id 9FB7E1F42B; Fri, 19 Jul 2019 10:54:00 +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] qca8k: enable port flow control Date: Fri, 19 Jul 2019 10:53:11 +0800 Message-Id: <1563504791-43398-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. Change-Id: Ibf0f554b072fc73136ec9f7ffb90c20b25a4faae 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 d93be14..95ac081 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -1,7 +1,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 * * This program is free software; you can redistribute it and/or modify @@ -800,6 +800,8 @@ qca8k_port_set_status(priv, port, 1); priv->port_sts[port].enabled = 1; + phy->advertising |= (ADVERTISED_Pause | ADVERTISED_Asym_Pause); + return 0; }