summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-01 15:36:27 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-08 06:02:52 +0100
commit128b4a0ef74e8d48033513e41a413087ba30e36b (patch)
tree9fe76b544808404892dbe1c8259a02a3cbf9e422 /drivers
parentpowerpc/macio: Add devres support to macio_device (diff)
downloadlinux-128b4a0ef74e8d48033513e41a413087ba30e36b.tar.xz
linux-128b4a0ef74e8d48033513e41a413087ba30e36b.zip
powerpc/macio: Add dma_parms support to macio
This adds dma_parms to macio devices and initializes them with default values. This will allow pata_macio to setup the appropriate max segment size for the block layer. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/macintosh/macio_asic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 5200acfc9d38..26a303a1d1ab 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -379,6 +379,11 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
dev->ofdev.dev.parent = parent;
dev->ofdev.dev.bus = &macio_bus_type;
dev->ofdev.dev.release = macio_release_dev;
+ dev->ofdev.dev.dma_parms = &dev->dma_parms;
+
+ /* Standard DMA paremeters */
+ dma_set_max_seg_size(&dev->ofdev.dev, 65536);
+ dma_set_seg_boundary(&dev->ofdev.dev, 0xffffffff);
#ifdef CONFIG_PCI
/* Set the DMA ops to the ones from the PCI device, this could be