From: Tom Rini Date: Fri, 7 Feb 2014 09:20:13 -0500 Subject: [U-Boot] net/designware: add explicit reset of {tx|rx}_currdescnum In-Reply-To: <1389605318-26178-1-git-send-email-abrodkin@synopsys.com> References: <1389605318-26178-1-git-send-email-abrodkin@synopsys.com> Message-ID: <20140207142013.GM7049@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 13, 2014 at 01:28:38PM +0400, Alexey Brodkin wrote: > Driver "init" function might be called multiple times. > On every "init" Tx/Rx buffer descriptors are initialized: "descs_init" > -> "{tx|rx}_descs_init". > > In its turn those init functions set MAC's "{tx|rx}desclistaddr" to > point on the first buffer descriptor in the list. > > So CPU to start operation from the first buffer descriptor as well after > every "init" we have to reset "{tx|rx}_currdescnum". > > Signed-off-by: Alexey Brodkin > > Cc: Joe Hershberger > Cc: Vipin Kumar > Cc: Stefan Roese > Cc: Mischa Jonker Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: