Re: [PATCH] ARC: Fix __udelay calculation

From: Vineet Gupta
Date: Fri Aug 30 2013 - 07:13:39 EST


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@xxxxxxxxxxxx>
>

Applied.

Thx,
-Vineet
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/