]> err.no Git - linux-2.6/commitdiff
[ARM] Set coherent DMA mask for Acorn expansion cards
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Mon, 2 Apr 2007 12:53:15 +0000 (13:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 May 2007 13:16:55 +0000 (14:16 +0100)
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>
arch/arm/kernel/ecard.c

index f1c0fb974177803c0ec2510d79d4e9c72669164b..6eb80acea379fe2d8c132900d2250336f6c0e00c 100644 (file)
@@ -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,