[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1564275470-52666-1-git-send-email-xiaofeis@codeaurora.org>
Date: Sun, 28 Jul 2019 08:57:50 +0800
From: xiaofeis <xiaofeis@...eaurora.org>
To: davem@...emloft.net
Cc: vkoul@...nel.org, netdev@...r.kernel.org, andrew@...n.ch,
linux-arm-msm@...r.kernel.org, bjorn.andersson@...aro.org,
vivien.didelot@...il.com, f.fainelli@...il.com,
niklas.cassel@...aro.org, xiazha@...eaurora.org,
xiaofeis <xiaofeis@...eaurora.org>
Subject: [PATCH v3] net: dsa: qca8k: enable port flow control
Set phy device advertising to enable MAC flow control.
Signed-off-by: Xiaofei Shen <xiaofeis@...eaurora.org>
---
Changes since V2:
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..e429e92 100644
--- a/drivers/net/dsa/qca8k.c
+++ b/drivers/net/dsa/qca8k.c
@@ -2,7 +2,7 @@
/*
* Copyright (C) 2009 Felix Fietkau <nbd@....name>
* Copyright (C) 2011-2012 Gabor Juhos <juhosg@...nwrt.org>
- * Copyright (c) 2015, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015, 2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2016 John Crispin <john@...ozen.org>
*/
@@ -935,6 +935,8 @@
qca8k_port_set_status(priv, port, 1);
priv->port_sts[port].enabled = 1;
+ phy_support_asym_pause(phy);
+
return 0;
}
--
1.9.1
Powered by blists - more mailing lists