summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/mach-ip32/mangle-port.h
AgeCommit message (Collapse)AuthorFilesLines
2020-06-25MIPS: io: fix sparse flood on asm/io.hAlexander Lobakin1-3/+3
MIPS MMIO macros for byteswapping from/to hardware endianness are a bit tricky because they use cpu_to_le{16,32,64}() in both directions. This generates a lot of questions from sparse as __le{16,32,64} types are 'restricted' and direct cast is forbidden in order to prevent messing up the byteorder. As MMIO ops are used in almost every single driver, this leads to console flooding and complicates bug hunting. We could fix it in a more proper way, i.e. separate from device / to device byteswap macros and expand __BUILD_MEMORY_*(), but this seems redundant and will produce code duplication. Instead, just expand the existing *ioswab*() macros with forced typecasting to stop floods. Signed-off-by: Alexander Lobakin <alobakin@pm.me> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-06-25MIPS: generic/ip32: io: fix __mem_ioswabq()Alexander Lobakin1-1/+1
*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>
2008-10-11MIPS: Move headfiles to new location below arch/mips/includeRalf Baechle1-0/+26
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>