lkml.org 
[lkml]   [2013]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] ARC: Fix __udelay calculation
Date
On 08/30/2013 03:26 PM, Mischa Jonker wrote:
> Cast usecs to u64, to ensure that the (usecs * 4295 * HZ)
> multiplication is 64 bit.
>
> Initially, the (usecs * 4295 * HZ) part was done as a 32 bit
> multiplication, with the result casted to 64 bit. This led to some bits
> falling off, causing a "DMA initialization error" in the stmmac Ethernet
> driver, due to a premature timeout.
>
> Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
>

Applied.

Thx,
-Vineet


\
 
 \ /
  Last update: 2013-08-30 13:21    [W:0.034 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site