mirror of https://github.com/torvalds/linux.git
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> |
||
|---|---|---|
| .. | ||
| Kbuild | ||
| adc.h | ||
| addrspace.h | ||
| alignment.h | ||
| asm-offsets.h | ||
| atomic-grb.h | ||
| atomic-irq.h | ||
| atomic-llsc.h | ||
| atomic.h | ||
| barrier.h | ||
| bitops-grb.h | ||
| bitops-llsc.h | ||
| bitops-op32.h | ||
| bitops.h | ||
| bl_bit.h | ||
| bl_bit_32.h | ||
| bl_bit_64.h | ||
| bug.h | ||
| bugs.h | ||
| cache.h | ||
| cache_insns.h | ||
| cache_insns_32.h | ||
| cache_insns_64.h | ||
| cacheflush.h | ||
| checksum.h | ||
| checksum_32.h | ||
| clkdev.h | ||
| clock.h | ||
| cmpxchg-grb.h | ||
| cmpxchg-irq.h | ||
| cmpxchg-llsc.h | ||
| cmpxchg.h | ||
| device.h | ||
| dma-mapping.h | ||
| dma-register.h | ||
| dma.h | ||
| dmabrg.h | ||
| dwarf.h | ||
| elf.h | ||
| entry-macros.S | ||
| fb.h | ||
| fixmap.h | ||
| flat.h | ||
| fpu.h | ||
| freq.h | ||
| ftrace.h | ||
| futex-irq.h | ||
| futex.h | ||
| gpio.h | ||
| hardirq.h | ||
| hd64461.h | ||
| heartbeat.h | ||
| hugetlb.h | ||
| hw_breakpoint.h | ||
| hw_irq.h | ||
| i2c-sh7760.h | ||
| io.h | ||
| io_generic.h | ||
| io_noioport.h | ||
| io_trapped.h | ||
| irq.h | ||
| irqflags.h | ||
| kdebug.h | ||
| kexec.h | ||
| kgdb.h | ||
| kmap_types.h | ||
| kprobes.h | ||
| linkage.h | ||
| machvec.h | ||
| mc146818rtc.h | ||
| mmu.h | ||
| mmu_context.h | ||
| mmu_context_32.h | ||
| mmu_context_64.h | ||
| mmzone.h | ||
| module.h | ||
| mutex-llsc.h | ||
| mutex.h | ||
| page.h | ||
| pci.h | ||
| perf_event.h | ||
| pgalloc.h | ||
| pgtable-2level.h | ||
| pgtable-3level.h | ||
| pgtable.h | ||
| pgtable_32.h | ||
| pgtable_64.h | ||
| posix_types.h | ||
| processor.h | ||
| processor_32.h | ||
| processor_64.h | ||
| ptrace.h | ||
| ptrace_32.h | ||
| ptrace_64.h | ||
| push-switch.h | ||
| reboot.h | ||
| romimage-macros.h | ||
| rtc.h | ||
| rwsem.h | ||
| seccomp.h | ||
| sections.h | ||
| segment.h | ||
| setup.h | ||
| sfp-machine.h | ||
| sh7760fb.h | ||
| sh_bios.h | ||
| shmparam.h | ||
| siu.h | ||
| smc37c93x.h | ||
| smp-ops.h | ||
| smp.h | ||
| sparsemem.h | ||
| spi.h | ||
| spinlock.h | ||
| spinlock_types.h | ||
| sram.h | ||
| stackprotector.h | ||
| stacktrace.h | ||
| string.h | ||
| string_32.h | ||
| string_64.h | ||
| suspend.h | ||
| switch_to.h | ||
| switch_to_32.h | ||
| switch_to_64.h | ||
| syscall.h | ||
| syscall_32.h | ||
| syscall_64.h | ||
| syscalls.h | ||
| syscalls_32.h | ||
| syscalls_64.h | ||
| thread_info.h | ||
| timex.h | ||
| tlb.h | ||
| tlb_64.h | ||
| tlbflush.h | ||
| topology.h | ||
| traps.h | ||
| traps_32.h | ||
| traps_64.h | ||
| types.h | ||
| uaccess.h | ||
| uaccess_32.h | ||
| uaccess_64.h | ||
| unaligned-sh4a.h | ||
| unaligned.h | ||
| uncached.h | ||
| unistd.h | ||
| unwinder.h | ||
| user.h | ||
| vga.h | ||
| vmlinux.lds.h | ||
| watchdog.h | ||
| word-at-a-time.h | ||