patch-2.4.20 linux-2.4.20/drivers/message/i2o/i2o_pci.c

Next file: linux-2.4.20/drivers/mtd/devices/Config.in
Previous file: linux-2.4.20/drivers/message/i2o/i2o_core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/message/i2o/i2o_pci.c linux-2.4.20/drivers/message/i2o/i2o_pci.c
@@ -35,6 +35,7 @@
 
 static int dpt = 0;
 
+extern void i2o_sys_init(void);
 
 /**
  *	i2o_pci_dispose		-	Free bus specific resources
@@ -334,6 +335,11 @@
 			continue;
 		printk(KERN_INFO "i2o: I2O controller on bus %d at %d.\n",
 			dev->bus->number, dev->devfn);
+		if(pci_set_dma_mask(dev, 0xffffffff))
+		{
+			printk(KERN_WARNING "I2O controller on bus %d at %d : No suitable DMA available\n", dev->bus->number, dev->devfn);
+		 	continue;
+		}
 		pci_set_master(dev);
 		if(i2o_pci_install(dev)==0)
 			count++;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)