aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-02-04 14:25:43 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-04-29 18:00:27 -0400
commit0555659d63c285ceb7ead3115532e1b71b0f27a7 (patch)
tree45e8f594a9e8d738bd8966649433516790285df8 /drivers
parentf412bf440be2dfc0f0ded917410c599c002549e0 (diff)
ieee1394: sbp2: enforce 32bit DMA mapping
In order to use OHCI-1394 physical DMA, all s/g elements, s/g tables, ORBs, and response buffers have to reside within the first 4 GB of the FireWire controller's physical address space. Set the correct mask for DMA mappings. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ieee1394/sbp2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c
index 4edfff46b1e6..e15b5d7b9a02 100644
--- a/drivers/ieee1394/sbp2.c
+++ b/drivers/ieee1394/sbp2.c
@@ -757,6 +757,11 @@ static struct sbp2_lu *sbp2_alloc_device(struct unit_directory *ud)
757 SBP2_ERR("failed to register lower 4GB address range"); 757 SBP2_ERR("failed to register lower 4GB address range");
758 goto failed_alloc; 758 goto failed_alloc;
759 } 759 }
760#else
761 if (dma_set_mask(hi->host->device.parent, DMA_32BIT_MASK)) {
762 SBP2_ERR("failed to set 4GB DMA mask");
763 goto failed_alloc;
764 }
760#endif 765#endif
761 } 766 }
762 767