Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1396859
| From | Horia Ioan Geanta Neag <horia.geanta@nxp.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 4/8] powerpc: add io{read,write}64 accessors |
| Date | 2016-05-09 11:00 +0200 |
| Message-ID | <rwPcK-1Kc-3@gated-at.bofh.it> (permalink) |
| References | <rvuk2-3e2-19@gated-at.bofh.it> <rwPcK-1Kc-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 5/5/2016 6:37 PM, Horia Geantă wrote:
> This will allow device drivers to consistently use io{read,write}XX
> also for 64-bit accesses.
>
> Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
It would be great if PPC maintainers could Ack this patch.
As stated in the cover letter: https://lkml.org/lkml/2016/5/5/340
I'd like to go with the whole patch set via cryptodev-2.6 tree.
Thanks,
Horia
> ---
> arch/powerpc/kernel/iomap.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/powerpc/kernel/iomap.c b/arch/powerpc/kernel/iomap.c
> index 12e48d56f771..3963f0b68d52 100644
> --- a/arch/powerpc/kernel/iomap.c
> +++ b/arch/powerpc/kernel/iomap.c
> @@ -38,6 +38,18 @@ EXPORT_SYMBOL(ioread16);
> EXPORT_SYMBOL(ioread16be);
> EXPORT_SYMBOL(ioread32);
> EXPORT_SYMBOL(ioread32be);
> +#ifdef __powerpc64__
> +u64 ioread64(void __iomem *addr)
> +{
> + return readq(addr);
> +}
> +u64 ioread64be(void __iomem *addr)
> +{
> + return readq_be(addr);
> +}
> +EXPORT_SYMBOL(ioread64);
> +EXPORT_SYMBOL(ioread64be);
> +#endif /* __powerpc64__ */
>
> void iowrite8(u8 val, void __iomem *addr)
> {
> @@ -64,6 +76,18 @@ EXPORT_SYMBOL(iowrite16);
> EXPORT_SYMBOL(iowrite16be);
> EXPORT_SYMBOL(iowrite32);
> EXPORT_SYMBOL(iowrite32be);
> +#ifdef __powerpc64__
> +void iowrite64(u64 val, void __iomem *addr)
> +{
> + writeq(val, addr);
> +}
> +void iowrite64be(u64 val, void __iomem *addr)
> +{
> + writeq_be(val, addr);
> +}
> +EXPORT_SYMBOL(iowrite64);
> +EXPORT_SYMBOL(iowrite64be);
> +#endif /* __powerpc64__ */
>
> /*
> * These are the "repeat read/write" functions. Note the
>
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v2 4/8] powerpc: add io{read,write}64 accessors Horia Ioan Geanta Neag <horia.geanta@nxp.com> - 2016-05-09 11:00 +0200
Re: [PATCH v2 4/8] powerpc: add io{read,write}64 accessors Scott Wood <scott.wood@nxp.com> - 2016-05-10 21:00 +0200
Re: [PATCH v2 4/8] powerpc: add io{read,write}64 accessors Michael Ellerman <mpe@ellerman.id.au> - 2016-05-11 02:40 +0200
csiph-web