Christoph Hellwig ee196371d5 dma-mapping: consolidate dma_supported
Most architectures just call into ->dma_supported, but some also return 1
if the method is not present, or 0 if no dma ops are present (although
that should never happeb). Consolidate this more broad version into
common code.

Also fix h8300 which inorrectly always returned 0, which would have been
a problem if it's dma_set_mask implementation wasn't a similarly buggy
noop.

As a few architectures have much more elaborate implementations, we
still allow for arch overrides.

[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
..
2010-11-04 12:32:24 +09:00
2015-07-27 14:06:23 +02:00
2015-07-27 14:06:23 +02:00
2014-04-18 14:20:44 +02:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-12 22:19:10 +01:00
2012-03-28 18:30:03 +01:00
2015-05-13 10:55:42 +02:00
2012-01-13 16:27:38 +09:00
2012-05-19 18:50:09 +09:00
2013-01-11 21:02:57 +09:00
2014-01-23 16:36:54 -08:00
2012-03-28 18:30:03 +01:00
2011-07-26 16:49:47 -07:00
2012-05-18 14:52:31 +09:00
2010-11-01 09:49:04 -04:00
2015-09-08 14:35:59 -07:00
2012-05-21 17:54:01 +09:00
2010-10-07 14:08:55 +01:00
2012-05-24 15:03:46 +09:00
2013-11-15 09:32:18 +09:00
2015-01-13 15:24:08 +02:00
2011-07-26 16:49:47 -07:00
2012-05-14 13:04:08 +09:00
2015-01-13 15:23:38 +02:00
2015-01-13 15:23:21 +02:00
2011-03-31 11:26:23 -03:00