]> git.baikalelectronics.ru Git - kernel.git/commit
arm: fix "arm: fix pci_set_consistent_dma_mask for dmabounce devices"
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 22 Sep 2010 20:04:55 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Sep 2010 00:22:38 +0000 (17:22 -0700)
commit10634a0fece0271fdf9cdb27626347e4a9c13e81
tree3caa498384daec3b2e40adb4a89d7f854f2adb7c
parent34b267ae54bfa2caa60aaa7be1b65875617bb895
arm: fix "arm: fix pci_set_consistent_dma_mask for dmabounce devices"

This fixes the regression caused by the commit 63cf9483a2f868
("dma-mapping: arm: use generic pci_set_dma_mask and
pci_set_consistent_dma_mask").

ARM needs to clip the dma coherent mask for dmabounce devices. This
restores the old trick.

Note that strictly speaking, the DMA API doesn't allow architectures to do
such but I'm not sure it's worth adding the new API to set the dma mask
that allows architectures to clip it.

Reported-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/common/it8152.c
arch/arm/mach-ixp4xx/common-pci.c
arch/arm/mach-ixp4xx/include/mach/hardware.h
arch/arm/mach-pxa/include/mach/hardware.h
arch/arm/mach-pxa/include/mach/io.h
include/linux/dma-mapping.h