From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Sat, 21 Feb 2009 09:04:52 +0100 Subject: [U-Boot] Query on timeouts with NetSetTimeout In-Reply-To: <20090220070907.9EF0F832E43F@gemini.denx.de> References: <19F8576C6E063C45BE387C64729E739403FA90441B@dbde02.ent.ti.com> <20090220070907.9EF0F832E43F@gemini.denx.de> Message-ID: <499FB5A4.6010606@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mani, Wolfgang Denk wrote: > Dear "Pillai, Manikandan", > > In message <19F8576C6E063C45BE387C64729E739403FA90441B@dbde02.ent.ti.com> you wrote: >> >> The NetSetTimeout() invokes get_timer() to do its operations. The >> get_timer() should return the counter value. It's not always true >> that the counter runs at millisecond clock. I believe the earlier > > We call this a bug, then. get_timer() is specified to return tick os > one millisecond resolution. > > If your code behaves differently, it needs to be fixed. > >> versions of the NetSetTimeout calls in u-boot/net directory used to >> have a multiple of CONFIG_SYS_HZ for timeout that could easily be >> used to get required timeout for different platforms. > > That code was cleaned up some time ago. If there are board ports > which define CONFIG_SYS_HZ to anything else by the mandatory value > of 1000 (like OMAP seems to do), then such ports are broken and need > to be fixed. Do you kindly like to look into the two issues Wolfgang mentions here, test and send a patch? Sounds like you understood the issue and can test it ;) Many thanks Dirk P.S.: Looping in BeagleBoard list.