Messages in this thread | | | From | Vineet Gupta <> | Subject | Re: [PATCH] ARC: Fix __udelay calculation | Date | Fri, 30 Aug 2013 11:13:31 +0000 |
| |
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
| |