]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
m68k: use asm-generic/io.h for non-MMU io access functions
authorGreg Ungerer <gerg@linux-m68k.org>
Fri, 23 Mar 2018 13:39:10 +0000 (23:39 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 27 May 2018 23:45:25 +0000 (09:45 +1000)
commitd97cf70af09721ef416c61faa44543e3b84c9a55
treee3b17e9594e9dc808552d9a18106b169ddcd200b
parentf8f3304856cdf67414ba2c1a3d2adf78974a3d6a
m68k: use asm-generic/io.h for non-MMU io access functions

There is nothing really special about the non-MMU m68k IO access functions.
So we can easily switch to using the asm-generic/io.h functions.

The only thing we do need to handle is that historically the m68k IO access
functions for readw/readl/writew/writel use native CPU endian ordering. So
for us on m68k/ColdFire that means they are big-endian. Leave the existing
set of _raw_read/__raw_write and read/write macros in place to deal with
them. (They are ripe for later cleanup, but that is for another patch).

Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/include/asm/io_no.h