lkml.org 
[lkml]   [2002]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.5.24 : drivers/scsi/gdth.c
Hello all,
This patch adds the DMA mapping checking code, and reduces some
redundancy. Please review.
Regards,
Frank

--- drivers/scsi/gdth.c.old Wed Feb 13 21:26:59 2002
+++ drivers/scsi/gdth.c Sun Jun 23 23:41:10 2002
@@ -827,10 +827,18 @@
TRACE(("gdth_search_dev() cnt %d vendor %x device %x\n",
*cnt, vendor, device));

-#if LINUX_VERSION_CODE >= 0x20363
+#if LINUX_VERSION_CODE >= 0x2015C
pdev = NULL;
while ((pdev = pci_find_device(vendor, device, pdev))
!= NULL) {
+ if(pci_set_dma_mask(pdev, 0xffffffff))
+ {
+ printk(KERN_WARNING "gdth : No suitable DMA available\n");
+ }
+
+#endif
+
+#if LINUX_VERSION_CODE >= 0x20363
if (pci_enable_device(pdev))
continue;
if (*cnt >= MAXHA)
@@ -866,11 +874,8 @@
(*cnt)++;
}
#elif LINUX_VERSION_CODE >= 0x2015C
- pdev = NULL;
- while ((pdev = pci_find_device(vendor, device, pdev))
- != NULL) {
- if (*cnt >= MAXHA)
- return;
+ if (*cnt >= MAXHA)
+ return;
/* GDT PCI controller found, resources are already in pdev */
pcistr[*cnt].pdev = pdev;
pcistr[*cnt].vendor_id = vendor;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.484 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site