Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755713AbbDOUzT (ORCPT ); Wed, 15 Apr 2015 16:55:19 -0400 Received: from mail-bn1bon0080.outbound.protection.outlook.com ([157.56.111.80]:54269 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751848AbbDOUzL (ORCPT ); Wed, 15 Apr 2015 16:55:11 -0400 X-Greylist: delayed 1066 seconds by postgrey-1.27 at vger.kernel.org; Wed, 15 Apr 2015 16:55:10 EDT Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; st.com; dkim=none (message not signed) header.d=none; From: Vince Bridgers To: , , CC: , Subject: [PATCH net 4/5] stmmac: Enable unicast pause frame detect in GMAC Register 6 Date: Wed, 15 Apr 2015 11:17:41 -0500 Message-ID: <1429114662-1528-5-git-send-email-vbridger@opensource.altera.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429114662-1528-1-git-send-email-vbridger@opensource.altera.com> References: <1429114662-1528-1-git-send-email-vbridger@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: SN1PR07CA0030.namprd07.prod.outlook.com (25.162.170.168) To CY1PR0301MB0634.namprd03.prod.outlook.com (25.160.158.140) Authentication-Results: st.com; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0634;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0598; X-Microsoft-Antispam-PRVS: X-Forefront-Antispam-Report-Untrusted: BMV:1;SFV:NSPM;SFS:(10009020)(6009001)(47776003)(48376002)(19580395003)(19580405001)(2201001)(33646002)(50466002)(50226001)(92566002)(66066001)(87976001)(62966003)(77156002)(2950100001)(86362001)(76176999)(50986999)(42186005)(40100003)(229853001)(122386002)(53416004)(4001410100001)(46102003)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB0634;H:vince-HP-Z620-Workstation2.altera.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:CY1PR0301MB0634;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0634;BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:BY2PR0301MB0598;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0598; X-Forefront-PRVS: 0547116B72 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0634 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BY2FFO11FD035.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236;CTRY:US;IPV:NLI;EFV:NLI;BMV:1;SFV:NSPM;SFS:(10009020)(6009001)(339900001)(199003)(189002)(50986999)(76176999)(50226001)(62966003)(77156002)(50466002)(46102003)(48376002)(87936001)(53416004)(2201001)(16796002)(4001410100001)(85426001)(229853001)(106466001)(86362001)(66066001)(122386002)(47776003)(2950100001)(105606002)(92566002)(19580395003)(33646002)(40100003)(19580405001)(6806004)(7099027)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR0301MB0598;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;MLV:ovrnspm;A:0;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Forefront-PRVS: 0547116B72 X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2015 20:22:17.0283 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.236];Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0598 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1517 Lines: 36 Unicast pause frame detect was not being enabled for the Synopsys stmmac. This patch sets Unicast pause frame detect in MAC register 6 so that pause frame detection by the stmmac conforms to IEEE 802.3, Annex 31B.3.3 Receive Operation - Specifically, a MAC shall respond to pause frames containing either the reserved multicast address or the unique physical address associated with this station. Signed-off-by: Vince Bridgers --- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c index 0adcf73..371a669 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c @@ -201,7 +201,10 @@ static void dwmac1000_flow_ctrl(struct mac_device_info *hw, unsigned int duplex, unsigned int fc, unsigned int pause_time) { void __iomem *ioaddr = hw->pcsr; - unsigned int flow = 0; + /* Set flow such that DZPQ in Mac Register 6 is 0, + * and unicast pause detect is enabled. + */ + unsigned int flow = GMAC_FLOW_CTRL_UP; pr_debug("GMAC Flow-Control:\n"); if (fc & FLOW_RX) { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/