All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] drivers/scsi/gdth.c Use the DMA_32BIT_MASK constant
@ 2005-05-28  0:16 Henry
  2005-05-28  0:24 ` Dave Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Henry @ 2005-05-28  0:16 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1647 bytes --]

Hi, this is my first patch for linux kernel. Don't know if its correct, please check. Its based on an item on the 
TODO list


Signed-off-by: Kouzinopoulos Haris <haris at mpa.gr>

--- linux/drivers/scsi/gdth.c	2005-05-28 02:38:23.000000000 +0300
+++ linux/drivers/scsi/gdth.c.patch	2005-05-28 03:02:33.000000000 +0300
@@ -388,6 +388,7 @@
 #include <linux/proc_fs.h>
 #include <linux/time.h>
 #include <linux/timer.h>
+#include <linux/dma-mapping.h>
 #ifdef GDTH_RTC
 #include <linux/mc146818rtc.h>
 #endif
@@ -4529,15 +4530,15 @@ static int __init gdth_detect(Scsi_Host_
             if (!(ha->cache_feat & ha->raw_feat & ha->screen_feat &GDT_64BIT)||
                 /* 64-bit DMA only supported from FW >= x.43 */
                 (!ha->dma64_support)) {
-                if (pci_set_dma_mask(pcistr[ctr].pdev, 0xffffffff)) {
+                if (pci_set_dma_mask(pcistr[ctr].pdev, DMA_32BIT_MASK)) {
                     printk(KERN_WARNING "GDT-PCI %d: Unable to set 32-bit DMA\n", hanum);
                     err = TRUE;
                 }
             } else {
                 shp->max_cmd_len = 16;
-                if (!pci_set_dma_mask(pcistr[ctr].pdev, 0xffffffffffffffffULL)) {
+                if (!pci_set_dma_mask(pcistr[ctr].pdev, DMA_32BIT_MASK)) {
                     printk("GDT-PCI %d: 64-bit DMA enabled\n", hanum);
-                } else if (pci_set_dma_mask(pcistr[ctr].pdev, 0xffffffff)) {
+                } else if (pci_set_dma_mask(pcistr[ctr].pdev, DMA_32BIT_MASK)) {
                     printk(KERN_WARNING "GDT-PCI %d: Unable to set 64/32-bit DMA\n", hanum);
                     err = TRUE;
                 }

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-29  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-28  0:16 [KJ] [PATCH] drivers/scsi/gdth.c Use the DMA_32BIT_MASK constant Henry
2005-05-28  0:24 ` Dave Jones
2005-05-28  7:34 ` Tobias Klauser
2005-05-28 12:07 ` Henry
2005-05-29  9:30 ` Christophe Lucas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.