[svn-commits] sruffell: branch linux/sruffell/dahdi-linux-withidle r7504 - /linux/team/sruf...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 6 14:33:27 CST 2009


Author: sruffell
Date: Fri Nov  6 14:33:17 2009
New Revision: 7504

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7504
Log:
voicebus: Set the DMA_BIT_MASK

Modified:
    linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/voicebus/voicebus.c

Modified: linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=7504&r1=7503&r2=7504
==============================================================================
--- linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/voicebus/voicebus.c Fri Nov  6 14:33:17 2009
@@ -1454,6 +1454,12 @@
 	/* ----------------------------------------------------------------
 	   Configure the hardware interface.
 	   ---------------------------------------------------------------- */
+	if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
+		release_region(vb->iobase, 0xff);
+		dev_warn(&vb->pdev->dev, "No suitable DMA available.\n");
+		goto cleanup;
+	}
+
 	pci_set_master(pdev);
 	vb_enable_io_access(vb);
 




More information about the svn-commits mailing list