From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Wilson Date: Fri, 28 Sep 2007 10:24:17 -0700 Subject: [U-Boot-Users] [PATCH] tsec.c patch for receiver reset Message-ID: <46FD38C1.3000205@fulcrummicro.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When we upgraded from u-boot 1.1.6 to 1.2.0, we found that ethernet no longer worked reliably on our 8541-based platforms, although for some reason 8548-based systems seemed to work fine. The problem was traced to a missing assignment in function startup_tsec. We have tried this patch on all of our 8541 and 8548-based boards, and it has resolved the problem for us. Any comments or suggestions are greatly appreciated. Signed-off by: Alain Gravel Signed-off by: Dan Wilson ==================================================== --- u-boot.git/drivers/tsec.c +++ fulcrum/drivers/tsec.c @@ -803,6 +803,7 @@ /* Tell the DMA it is clear to go */ regs->dmactrl |= DMACTRL_INIT_SETTINGS; regs->tstat = TSTAT_CLEAR_THALT; + regs->rstat = RSTAT_CLEAR_RHALT; regs->dmactrl &= ~(DMACTRL_GRS | DMACTRL_GTS); }