From patchwork Thu Jun 13 03:24:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 250963 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 528F12C0079 for ; Thu, 13 Jun 2013 13:26:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D9F7C4A052; Thu, 13 Jun 2013 05:26:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mx8nvtJTzJZS; Thu, 13 Jun 2013 05:26:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 191EF4A08A; Thu, 13 Jun 2013 05:25:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D73374A02D for ; Thu, 13 Jun 2013 05:25:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LV1e6znDFRLK for ; Thu, 13 Jun 2013 05:25:15 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oa0-f41.google.com (mail-oa0-f41.google.com [209.85.219.41]) by theia.denx.de (Postfix) with ESMTPS id 8487F4A029 for ; Thu, 13 Jun 2013 05:25:06 +0200 (CEST) Received: by mail-oa0-f41.google.com with SMTP id n10so3713718oag.14 for ; Wed, 12 Jun 2013 20:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=QW9XZ++mioM/Xdj6O2XD8JWpV5Tk3lI6x25Yki1CaQg=; b=AvBF2gJhnyeTnERYuNisqievysXT4X5vg5xh9wG3zMIH+GtMalV92XF5UMhmguYbbP 7WD5IQPbYjIwPZn2MqSa0dG9ezGAzcK0+vQebiu9IwXk1asEpfr04M8efXCBEhRcUSj4 DWk5Yc4S+cWHmVL+r3eb4gMIo3gWTpSvPLLIPaHnlZl0E4Rgdkazt/QCmCXISAPhnAI1 zWx21Y7tIHdVLMV2LqgFsxLpt05K1thg8ttv8ipUw4z3zZ3rW7FR+hsfz5KXEce8l2z/ twui3gjJbWvrCJkE5zwUsvJ9ofYxaxwZXrVZzdcTDzoV+544kgd1Lq0GPWubg5PGVbbU ZIWQ== X-Received: by 10.60.63.52 with SMTP id d20mr17770675oes.116.1371093905203; Wed, 12 Jun 2013 20:25:05 -0700 (PDT) Received: from rob-laptop.grandenetworks.net (65-36-73-129.dyn.grandenetworks.net. [65.36.73.129]) by mx.google.com with ESMTPSA id oe10sm37501996oeb.6.2013.06.12.20.25.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 20:25:04 -0700 (PDT) From: Rob Herring To: u-boot@lists.denx.de, albert.u.boot@aribaud.net, trini@ti.com Date: Wed, 12 Jun 2013 22:24:46 -0500 Message-Id: <1371093894-16424-2-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1371093894-16424-1-git-send-email-robherring2@gmail.com> References: <1371093894-16424-1-git-send-email-robherring2@gmail.com> Cc: Rob Herring Subject: [U-Boot] [PATCH v2 02/10] net: calxedaxgmac: enable rx cut-thru X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Rob Herring There is no reason to wait for the entire frame to start DMA on receive, so enable rx cut-thru for better performance. Signed-off-by: Rob Herring --- v2: no change, resend drivers/net/calxedaxgmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c index e3553d6..803687a 100644 --- a/drivers/net/calxedaxgmac.c +++ b/drivers/net/calxedaxgmac.c @@ -400,7 +400,7 @@ static int xgmac_init(struct eth_device *dev, bd_t * bis) /* set flow control parameters and store and forward mode */ value = (FIFO_MINUS_12K << XGMAC_CORE_OMR_RFD_SHIFT) | (FIFO_MINUS_4K << XGMAC_CORE_OMR_RFA_SHIFT) | - XGMAC_CORE_OMR_EFC | XGMAC_CORE_OMR_TSF | XGMAC_CORE_OMR_RSF; + XGMAC_CORE_OMR_EFC | XGMAC_CORE_OMR_TSF; writel(value, ®s->core_opmode); /* enable pause frames */