Messages in this thread | | | Date | Wed, 27 Jun 2012 10:27:21 -0700 | From | Stephen Boyd <> | Subject | Re: [PATCH v2] Exynos : Add support for Exynos random number generator |
| |
On 06/27/12 04:21, jonghwa3.lee@samsung.com 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |