* [[PATCH v2] 11/11] hwrng: exynos - fixup IO accesors [not found] <1466504432-24187-1-git-send-email-ben.dooks@codethink.co.uk> @ 2016-06-21 10:20 ` Ben Dooks 2016-06-22 10:37 ` Herbert Xu 0 siblings, 1 reply; 3+ messages in thread From: Ben Dooks @ 2016-06-21 10:20 UTC (permalink / raw) To: matthew.leach, k.kozlowski, linux-samsung-soc, linux-arm-kernel Cc: linux-kernel, Ben Dooks, Matt Mackall, linux-crypto The __raw IO functions are not endian safe, so use the readl_relaxed and writel_relaxed versions of these. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> --- CC: Matt Mackall <mpm@selenic.com> CC: Krzysztof Kozlowski <k.kozlowski@samsung.com> CC: linux-crypto@vger.kernel.org CC: linux-arm-kernel@lists.infradead.org CC: linux-samsung-soc@vger.kernel.org --- drivers/char/hw_random/exynos-rng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c index ed44561..23d3585 100644 --- a/drivers/char/hw_random/exynos-rng.c +++ b/drivers/char/hw_random/exynos-rng.c @@ -45,12 +45,12 @@ struct exynos_rng { static u32 exynos_rng_readl(struct exynos_rng *rng, u32 offset) { - return __raw_readl(rng->mem + offset); + return readl_relaxed(rng->mem + offset); } static void exynos_rng_writel(struct exynos_rng *rng, u32 val, u32 offset) { - __raw_writel(val, rng->mem + offset); + writel_relaxed(val, rng->mem + offset); } static int exynos_rng_configure(struct exynos_rng *exynos_rng) -- 2.8.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [[PATCH v2] 11/11] hwrng: exynos - fixup IO accesors 2016-06-21 10:20 ` [[PATCH v2] 11/11] hwrng: exynos - fixup IO accesors Ben Dooks @ 2016-06-22 10:37 ` Herbert Xu 2016-06-22 11:53 ` Ben Dooks 0 siblings, 1 reply; 3+ messages in thread From: Herbert Xu @ 2016-06-22 10:37 UTC (permalink / raw) To: Ben Dooks Cc: linux-kernel, k.kozlowski, linux-samsung-soc, matthew.leach, ben.dooks, linux-crypto, mpm, linux-arm-kernel Ben Dooks <ben.dooks@codethink.co.uk> wrote: > The __raw IO functions are not endian safe, so use the readl_relaxed > and writel_relaxed versions of these. > > Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> This patch has already been merged. Cheers, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [[PATCH v2] 11/11] hwrng: exynos - fixup IO accesors 2016-06-22 10:37 ` Herbert Xu @ 2016-06-22 11:53 ` Ben Dooks 0 siblings, 0 replies; 3+ messages in thread From: Ben Dooks @ 2016-06-22 11:53 UTC (permalink / raw) To: Herbert Xu Cc: linux-kernel, k.kozlowski, linux-samsung-soc, matthew.leach, linux-crypto, mpm, linux-arm-kernel On 22/06/16 11:37, Herbert Xu wrote: > Ben Dooks <ben.dooks@codethink.co.uk> wrote: >> The __raw IO functions are not endian safe, so use the readl_relaxed >> and writel_relaxed versions of these. >> >> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> > > This patch has already been merged. > > Cheers, Apologies, only meant to repost the core patches. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-22 11:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1466504432-24187-1-git-send-email-ben.dooks@codethink.co.uk>
2016-06-21 10:20 ` [[PATCH v2] 11/11] hwrng: exynos - fixup IO accesors Ben Dooks
2016-06-22 10:37 ` Herbert Xu
2016-06-22 11:53 ` Ben Dooks
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox