summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/ecard.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-04-02 12:53:15 (GMT)
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-05-03 13:16:55 (GMT)
commit69f4f331a0f78470f0bc42ba8db8d6cdd9cae4a9 (patch)
tree101ac757b60dfcef2de1e3ea49ee803190279c90 /arch/arm/kernel/ecard.c
parent235b185ce47ce64793362bd3ae4bcd8afc6b57b8 (diff)
downloadlinux-69f4f331a0f78470f0bc42ba8db8d6cdd9cae4a9.tar.xz
[ARM] Set coherent DMA mask for Acorn expansion cards
Although expansion cards can't do bus-master DMA, subsystems want to be able to use coherent memory for DMA purposes to these cards. Therefore, set the coherent DMA mask to allow such memory to be allocated. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/ecard.c')
-rw-r--r--arch/arm/kernel/ecard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c
index f1c0fb9..6eb80ac 100644
--- a/arch/arm/kernel/ecard.c
+++ b/arch/arm/kernel/ecard.c
@@ -825,6 +825,7 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot)
ec->dev.bus = &ecard_bus_type;
ec->dev.dma_mask = &ec->dma_mask;
ec->dma_mask = (u64)0xffffffff;
+ ec->dev.coherent_dma_mask = ec->dma_mask;
if (slot < 4) {
ec_set_resource(ec, ECARD_RES_MEMC,