Re: [PATCH v2] Exynos : Add support for Exynos random number generator

From: Stephen Boyd
Date: Wed Jun 27 2012 - 13:27:16 EST


On 06/27/12 04:21, jonghwa3.lee@xxxxxxxxxxx wrote:
> On 2012ë 06ì 27ì 20:07, Jamie Iles wrote:
>> A minor nit, but
>>
>> while (!(exynos_rng_readl(exynos_rng, EXYNOS_PRNG_STATUS_OFFSET) &
>> PRNG_DONE))
>> cpu_relax();
>>
>> would be a bit more conventional.
>>
>
> Stephen Boyd suggested to me that way. Anyway I'll follow with
> conventional way.

I was thinking

do {
status = exynos_rng_readl(exynos_rng, EXYNOS_PRNG_STATUS_OFFSET);
} while (!(status & PRNG_DONE));


But that works too.

--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
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/