[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <C2D7FE5348E1B147BCA15975FBA23075141223@IN01WEMBXA.internal.synopsys.com>
Date: Fri, 30 Aug 2013 11:13:31 +0000
From: Vineet Gupta <Vineet.Gupta1@...opsys.com>
To: Mischa Jonker <Mischa.Jonker@...opsys.com>
CC: "joe@...ches.com" <joe@...ches.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ARC: Fix __udelay calculation
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@...opsys.com>
>
Applied.
Thx,
-Vineet
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists