From patchwork Wed Aug 10 07:12:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Hershberger X-Patchwork-Id: 109329 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 5667DB70C0 for ; Wed, 10 Aug 2011 15:18:43 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 37AF928273; Wed, 10 Aug 2011 07:18:40 +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 iy2JrE-DIbud; Wed, 10 Aug 2011 07:18:39 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 062A228277; Wed, 10 Aug 2011 07:18:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 331C828277 for ; Wed, 10 Aug 2011 07:18:32 +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 9WNUHXm3Zqib for ; Wed, 10 Aug 2011 07:18:31 +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 spamkiller06.natinst.com (mailserver6.natinst.com [130.164.80.6]) by theia.denx.de (Postfix) with ESMTP id E54B728273 for ; Wed, 10 Aug 2011 07:18:29 +0200 (CEST) Received: from mailserv59-us.natinst.com (nb-hsrp-1338.natinst.com [130.164.19.133]) by spamkiller06.natinst.com (8.14.4/8.14.4) with ESMTP id p7A5IMX1002342; Wed, 10 Aug 2011 00:18:22 -0500 Received: from localhost.localdomain ([130.164.14.197]) by mailserv59-us.natinst.com (Lotus Domino Release 8.5.2FP1) with ESMTP id 2011081000182264-93230 ; Wed, 10 Aug 2011 00:18:22 -0500 From: Joe Hershberger To: u-boot@lists.denx.de Date: Wed, 10 Aug 2011 02:12:24 -0500 Message-Id: <1312960344-1499-1-git-send-email-joe.hershberger@ni.com> X-Mailer: git-send-email 1.6.0.2 X-MIMETrack: Itemize by SMTP Server on MailServ59-US/AUS/H/NIC(Release 8.5.2FP1|November 29, 2010) at 08/10/2011 12:18:22 AM, Serialize by Router on MailServ59-US/AUS/H/NIC(Release 8.5.2FP1|November 29, 2010) at 08/10/2011 12:18:22 AM, Serialize complete at 08/10/2011 12:18:22 AM X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813, 1.0.211, 0.0.0000 definitions=2011-08-10_01:2011-08-10, 2011-08-09, 1970-01-01 signatures=0 Cc: Kumar Gala , Joe Hershberger , Andy Fleming Subject: [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Previously only the last N were included based on the current one in use. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Mingkai Hu Cc: Andy Fleming Cc: Kumar Gala Cc: Detlev Zundel Acked-by: Andy Fleming Acked-by: Andy Fleming --- drivers/net/tsec.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 78ffc95..1805ca0 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -250,8 +250,8 @@ static void startup_tsec(struct eth_device *dev) txIdx = 0; /* Point to the buffer descriptors */ - out_be32(®s->tbase, (unsigned int)(&rtx.txbd[txIdx])); - out_be32(®s->rbase, (unsigned int)(&rtx.rxbd[rxIdx])); + out_be32(®s->tbase, (unsigned int)(&rtx.txbd[0])); + out_be32(®s->rbase, (unsigned int)(&rtx.rxbd[0])); /* Initialize the Rx Buffer descriptors */ for (i = 0; i < PKTBUFSRX; i++) {