aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/aacraid/aachba.c8
-rw-r--r--drivers/scsi/aacraid/linit.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index a8e3dfcd0dc7..b864d3d4d133 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -785,12 +785,12 @@ int aac_get_adapter_info(struct aac_dev* dev)
785 dev->dac_support = (dacmode!=0); 785 dev->dac_support = (dacmode!=0);
786 } 786 }
787 if(dev->dac_support != 0) { 787 if(dev->dac_support != 0) {
788 if (!pci_set_dma_mask(dev->pdev, 0xFFFFFFFFFFFFFFFFULL) && 788 if (!pci_set_dma_mask(dev->pdev, DMA_64BIT_MASK) &&
789 !pci_set_consistent_dma_mask(dev->pdev, 0xFFFFFFFFFFFFFFFFULL)) { 789 !pci_set_consistent_dma_mask(dev->pdev, DMA_64BIT_MASK)) {
790 printk(KERN_INFO"%s%d: 64 Bit DAC enabled\n", 790 printk(KERN_INFO"%s%d: 64 Bit DAC enabled\n",
791 dev->name, dev->id); 791 dev->name, dev->id);
792 } else if (!pci_set_dma_mask(dev->pdev, 0xFFFFFFFFULL) && 792 } else if (!pci_set_dma_mask(dev->pdev, DMA_32BIT_MASK) &&
793 !pci_set_consistent_dma_mask(dev->pdev, 0xFFFFFFFFULL)) { 793 !pci_set_consistent_dma_mask(dev->pdev, DMA_32BIT_MASK)) {
794 printk(KERN_INFO"%s%d: DMA mask set failed, 64 Bit DAC disabled\n", 794 printk(KERN_INFO"%s%d: DMA mask set failed, 64 Bit DAC disabled\n",
795 dev->name, dev->id); 795 dev->name, dev->id);
796 dev->dac_support = 0; 796 dev->dac_support = 0;
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
index 4ff29d7f5825..7a25dab48a9e 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -751,8 +751,8 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
751 if (pci_enable_device(pdev)) 751 if (pci_enable_device(pdev))
752 goto out; 752 goto out;
753 753
754 if (pci_set_dma_mask(pdev, 0xFFFFFFFFULL) || 754 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) ||
755 pci_set_consistent_dma_mask(pdev, 0xFFFFFFFFULL)) 755 pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK))
756 goto out; 756 goto out;
757 /* 757 /*
758 * If the quirk31 bit is set, the adapter needs adapter 758 * If the quirk31 bit is set, the adapter needs adapter
@@ -795,9 +795,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
795 * address space. 795 * address space.
796 */ 796 */
797 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT) 797 if (aac_drivers[index].quirks & AAC_QUIRK_31BIT)
798 if (pci_set_dma_mask(pdev, 0xFFFFFFFFULL)) 798 if (pci_set_dma_mask(pdev, DMA_32BIT_MASK))
799 goto out_free_fibs; 799 goto out_deinit;
800 800
801 aac->maximum_num_channels = aac_drivers[index].channels; 801 aac->maximum_num_channels = aac_drivers[index].channels;
802 aac_get_adapter_info(aac); 802 aac_get_adapter_info(aac);
803 803