Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2078
b: refs/heads/master
c: eb0df99
h: refs/heads/master
v: v3
  • Loading branch information
mike.miller@hp.com authored and James Bottomley committed Jun 11, 2005
1 parent f38eebb commit f5e9f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e431223eca7e0785a5402999b43b16622409017f
refs/heads/master: eb0df9962d97f7156a0870aced9018bf5c8f54c1
12 changes: 3 additions & 9 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <asm/uaccess.h>
#include <asm/io.h>

#include <linux/dma-mapping.h>
#include <linux/blkdev.h>
#include <linux/genhd.h>
#include <linux/completion.h>
Expand Down Expand Up @@ -126,8 +127,6 @@ static struct board_type products[] = {
#define MAX_CTLR_ORIG 8


#define CCISS_DMA_MASK 0xFFFFFFFF /* 32 bit DMA */

static ctlr_info_t *hba[MAX_CTLR];

static void do_cciss_request(request_queue_t *q);
Expand Down Expand Up @@ -2393,11 +2392,6 @@ static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
printk(KERN_ERR "cciss: Unable to Enable PCI device\n");
return( -1);
}
if (pci_set_dma_mask(pdev, CCISS_DMA_MASK ) != 0)
{
printk(KERN_ERR "cciss: Unable to set DMA mask\n");
return(-1);
}

subsystem_vendor_id = pdev->subsystem_vendor;
subsystem_device_id = pdev->subsystem_device;
Expand Down Expand Up @@ -2747,9 +2741,9 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
hba[i]->pdev = pdev;

/* configure PCI DMA stuff */
if (!pci_set_dma_mask(pdev, 0xffffffffffffffffULL))
if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK))
printk("cciss: using DAC cycles\n");
else if (!pci_set_dma_mask(pdev, 0xffffffff))
else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK))
printk("cciss: not using DAC cycles\n");
else {
printk("cciss: no suitable DMA available\n");
Expand Down

0 comments on commit f5e9f85

Please sign in to comment.