From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Scholz Date: Tue, 22 Nov 2005 10:32:11 +0100 Subject: [U-Boot-Users] [PATCH][BUGFIX] Incorrect handling of AT91RM9200 timer overflow In-Reply-To: References: Message-ID: <4382E59B.4090702@imc-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, > the AT91RM9200 timer functions are confusing apples with bananas. > > When the (16-bit) timer overflows, we have lost exactly 2^16 counts > (or a multiple thereof, but we currently can't catch that situation), > but get_timer_raw() instead adds the (unrelated) conversion factor > to milliseconds, causing udelay() to potentially return too early. > > The patch below fixes this. > > Cheers > Anders > > CHANGELOG: > Fix incorrect handling of at91rm9200 timer overflow in get_timer_raw() > Patch by Anders Larsen, 11 Nov 2005 > > Signed-off-by: Anders Larsen Makes sense. Please apply. -- Steven