OpenCloudOS-Kernel/arch/mips/loongson64/common
Christoph Hellwig 452e06af1f dma-mapping: consolidate dma_set_mask
Almost everyone implements dma_set_mask the same way, although some time
that's hidden in ->set_dma_mask methods.

This patch consolidates those into a common implementation that either
calls ->set_dma_mask if present or otherwise uses the default
implementation.  Some architectures used to only call ->set_dma_mask
after the initial checks, and those instance have been fixed to do the
full work.  h8300 implemented dma_set_mask bogusly as a no-ops and has
been fixed.

Unfortunately some architectures overload unrelated semantics like changing
the dma_ops into it so we still need to allow for an architecture override
for now.

[jcmvbkbc@gmail.com: fix xtensa]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-09-10 13:29:01 -07:00
..
cs5536 MIPS: loongson64/timer: Migrate to new 'set-state' interface 2015-09-03 12:07:53 +02:00
Makefile MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
bonito-irq.c MIPS, CPUFREQ: Fix spelling of Institute. 2015-07-07 20:59:42 +02:00
cmdline.c MIPS, CPUFREQ: Fix spelling of Institute. 2015-07-07 20:59:42 +02:00
dma-swiotlb.c dma-mapping: consolidate dma_set_mask 2015-09-10 13:29:01 -07:00
early_printk.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
env.c MIPS, CPUFREQ: Fix spelling of Institute. 2015-07-07 20:59:42 +02:00
init.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
irq.c MIPS, CPUFREQ: Fix spelling of Institute. 2015-07-07 20:59:42 +02:00
machtype.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
mem.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
pci.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
platform.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
pm.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
reset.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
rtc.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
serial.c mips: make loongsoon serial driver explicitly modular 2015-06-21 21:54:12 +02:00
setup.c MIPS, CPUFREQ: Fix spelling of Institute. 2015-07-07 20:59:42 +02:00
time.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00
uart_base.c MIPS: Loongson: Naming style cleanup and rework 2015-06-21 21:53:59 +02:00