summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-ip32
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@pm.me>2020-06-20 09:34:43 +0000
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-06-25 10:34:45 +0200
commit3612485bf46e69679716bf55c058cd21b8259fae (patch)
treee8964785a973cf39ce580d129887edb93ca0d9de /arch/mips/include/asm/mach-ip32
parent2984b3f8c24b87ba4d57e213d593b2f91a4a31dd (diff)
downloadlinux-3612485bf46e69679716bf55c058cd21b8259fae.tar.bz2
MIPS: generic/ip32: io: fix __mem_ioswabq()
*readq() family operates with u64 arguments, so they need 64-bit byteswaps. Correct macros for Generic MIPS and IP-32 to match other machines' implementations. Signed-off-by: Alexander Lobakin <alobakin@pm.me> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include/asm/mach-ip32')
-rw-r--r--arch/mips/include/asm/mach-ip32/mangle-port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-ip32/mangle-port.h b/arch/mips/include/asm/mach-ip32/mangle-port.h
index f1d0f1756a9f..c5ef72ccb0d5 100644
--- a/arch/mips/include/asm/mach-ip32/mangle-port.h
+++ b/arch/mips/include/asm/mach-ip32/mangle-port.h
@@ -21,6 +21,6 @@
# define ioswabl(a, x) (x)
# define __mem_ioswabl(a, x) cpu_to_le32(x)
# define ioswabq(a, x) (x)
-# define __mem_ioswabq(a, x) cpu_to_le32(x)
+# define __mem_ioswabq(a, x) cpu_to_le64(x)
#endif /* __ASM_MACH_IP32_MANGLE_PORT_H */