aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/cciss.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 8f7c1a1ed7f4..abde27027c06 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -41,6 +41,7 @@
41#include <asm/uaccess.h> 41#include <asm/uaccess.h>
42#include <asm/io.h> 42#include <asm/io.h>
43 43
44#include <linux/dma-mapping.h>
44#include <linux/blkdev.h> 45#include <linux/blkdev.h>
45#include <linux/genhd.h> 46#include <linux/genhd.h>
46#include <linux/completion.h> 47#include <linux/completion.h>
@@ -126,8 +127,6 @@ static struct board_type products[] = {
126#define MAX_CTLR_ORIG 8 127#define MAX_CTLR_ORIG 8
127 128
128 129
129#define CCISS_DMA_MASK 0xFFFFFFFF /* 32 bit DMA */
130
131static ctlr_info_t *hba[MAX_CTLR]; 130static ctlr_info_t *hba[MAX_CTLR];
132 131
133static void do_cciss_request(request_queue_t *q); 132static void do_cciss_request(request_queue_t *q);
@@ -2393,11 +2392,6 @@ static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
2393 printk(KERN_ERR "cciss: Unable to Enable PCI device\n"); 2392 printk(KERN_ERR "cciss: Unable to Enable PCI device\n");
2394 return( -1); 2393 return( -1);
2395 } 2394 }
2396 if (pci_set_dma_mask(pdev, CCISS_DMA_MASK ) != 0)
2397 {
2398 printk(KERN_ERR "cciss: Unable to set DMA mask\n");
2399 return(-1);
2400 }
2401 2395
2402 subsystem_vendor_id = pdev->subsystem_vendor; 2396 subsystem_vendor_id = pdev->subsystem_vendor;
2403 subsystem_device_id = pdev->subsystem_device; 2397 subsystem_device_id = pdev->subsystem_device;
@@ -2747,9 +2741,9 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
2747 hba[i]->pdev = pdev; 2741 hba[i]->pdev = pdev;
2748 2742
2749 /* configure PCI DMA stuff */ 2743 /* configure PCI DMA stuff */
2750 if (!pci_set_dma_mask(pdev, 0xffffffffffffffffULL)) 2744 if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK))
2751 printk("cciss: using DAC cycles\n"); 2745 printk("cciss: using DAC cycles\n");
2752 else if (!pci_set_dma_mask(pdev, 0xffffffff)) 2746 else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK))
2753 printk("cciss: not using DAC cycles\n"); 2747 printk("cciss: not using DAC cycles\n");
2754 else { 2748 else {
2755 printk("cciss: no suitable DMA available\n"); 2749 printk("cciss: no suitable DMA available\n");