linux-stable/arch
FUJITA Tomonori 349004294c dma-mapping: sparc: unify 32bit and 64bit dma_set_mask
This patchset transforms the PCI DMA API into the generic device model.
It's one of the reasons why we introduced the generic DMA API long ago;
driver writers are always able to use the generic DMA API with any bus
instead of using bus specific DMA APIs such as pci_map_single,
sbus_map_single, etc (only two bus specific APIs exist now; pci and ssb).

Some of the PCI DMA API are already implented on the top of the generic
DMA API (include/asm-generic/pci-dma-compat.h).  But there are some
exceptions.  This patchset finishes the transformation.

This patch:

sparc has two dma_set_mask implementations for 32bit and 64bit.  They are
same except for the error returned value.  We can safely unify them since
the error returned value doesn't matter as long as it is negative (as
DMA-API.txt describes).

This patch also changes dma_set_mask not to call
pci_set_dma_mask. Instead, dma_set_mask does the same thing that
pci_set_dma_mask does. This change enables ut to change
pci_set_dma_mask to call dma_set_mask; we can implement
pci_set_dma_mask as pci-dma-compat.h does.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: David Miller <davem@davemloft.net>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: James Bottomley <James.Bottomley@suse.de>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Greg KH <greg@kroah.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:42 -08:00
..
alpha pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
arm pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
avr32 avr32: use generic ptrace_resume code 2010-03-12 15:52:38 -08:00
blackfin dma-mapping: blackfin: remove the obsolete and unnecessary DMA API comments 2010-03-12 15:52:42 -08:00
cris pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
frv dma-mapping: frv: remove the obsolete and unnecessary DMA API comments 2010-03-12 15:52:42 -08:00
h8300 h8300: use generic ptrace_resume code 2010-03-12 15:52:38 -08:00
ia64 pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
m32r m32r: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
m68k ptrace: move user_enable_single_step & co prototypes to linux/ptrace.h 2010-03-12 15:52:38 -08:00
m68knommu m68knommu: use generic ptrace_resume code 2010-03-12 15:52:38 -08:00
microblaze microblaze: use generic ptrace_resume code 2010-03-12 15:52:39 -08:00
mips pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
mn10300 dma-mapping: mn10300: remove the obsolete and unnecessary DMA API comments 2010-03-12 15:52:42 -08:00
parisc pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
powerpc pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
s390 ptrace: move user_enable_single_step & co prototypes to linux/ptrace.h 2010-03-12 15:52:38 -08:00
score ptrace: move user_enable_single_step & co prototypes to linux/ptrace.h 2010-03-12 15:52:38 -08:00
sh pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
sparc dma-mapping: sparc: unify 32bit and 64bit dma_set_mask 2010-03-12 15:52:42 -08:00
um um: remove dma_sync_single_range 2010-03-12 15:52:40 -08:00
x86 pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
xtensa pci-dma: add linux/pci-dma.h to linux/pci.h 2010-03-12 15:52:42 -08:00
.gitignore
Kconfig Merge branch 'perf-probes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-03-05 10:50:22 -08:00