From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Thu, 11 Aug 2011 16:26:51 +0400 Subject: [U-Boot] [PATCH] tsec: Configure the buffer descriptor bases to always include all of the descriptors In-Reply-To: <1312960344-1499-1-git-send-email-joe.hershberger@ni.com> References: <1312960344-1499-1-git-send-email-joe.hershberger@ni.com> Message-ID: <4E43CA8B.50900@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 10-08-2011 11:12, Joe Hershberger wrote: > 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 > --- > 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])); Note that & and [0] are not really needed. WBR, Sergei