diff options
Diffstat (limited to 'drivers/scsi/BusLogic.c')
| -rw-r--r-- | drivers/scsi/BusLogic.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 1c459343292b..bde3d5834ade 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c | |||
| @@ -41,6 +41,8 @@ | |||
| 41 | #include <linux/stat.h> | 41 | #include <linux/stat.h> |
| 42 | #include <linux/pci.h> | 42 | #include <linux/pci.h> |
| 43 | #include <linux/spinlock.h> | 43 | #include <linux/spinlock.h> |
| 44 | #include <linux/jiffies.h> | ||
| 45 | #include <linux/dma-mapping.h> | ||
| 44 | #include <scsi/scsicam.h> | 46 | #include <scsi/scsicam.h> |
| 45 | 47 | ||
| 46 | #include <asm/dma.h> | 48 | #include <asm/dma.h> |
| @@ -676,7 +678,7 @@ static int __init BusLogic_InitializeMultiMasterProbeInfo(struct BusLogic_HostAd | |||
| 676 | if (pci_enable_device(PCI_Device)) | 678 | if (pci_enable_device(PCI_Device)) |
| 677 | continue; | 679 | continue; |
| 678 | 680 | ||
| 679 | if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff)) | 681 | if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK )) |
| 680 | continue; | 682 | continue; |
| 681 | 683 | ||
| 682 | Bus = PCI_Device->bus->number; | 684 | Bus = PCI_Device->bus->number; |
| @@ -831,7 +833,7 @@ static int __init BusLogic_InitializeMultiMasterProbeInfo(struct BusLogic_HostAd | |||
| 831 | if (pci_enable_device(PCI_Device)) | 833 | if (pci_enable_device(PCI_Device)) |
| 832 | continue; | 834 | continue; |
| 833 | 835 | ||
| 834 | if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff)) | 836 | if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK)) |
| 835 | continue; | 837 | continue; |
| 836 | 838 | ||
| 837 | Bus = PCI_Device->bus->number; | 839 | Bus = PCI_Device->bus->number; |
| @@ -885,7 +887,7 @@ static int __init BusLogic_InitializeFlashPointProbeInfo(struct BusLogic_HostAda | |||
| 885 | if (pci_enable_device(PCI_Device)) | 887 | if (pci_enable_device(PCI_Device)) |
| 886 | continue; | 888 | continue; |
| 887 | 889 | ||
| 888 | if (pci_set_dma_mask(PCI_Device, (u64) 0xffffffff)) | 890 | if (pci_set_dma_mask(PCI_Device, DMA_32BIT_MASK)) |
| 889 | continue; | 891 | continue; |
| 890 | 892 | ||
| 891 | Bus = PCI_Device->bus->number; | 893 | Bus = PCI_Device->bus->number; |
| @@ -2896,7 +2898,7 @@ static int BusLogic_QueueCommand(struct scsi_cmnd *Command, void (*CompletionRou | |||
| 2896 | */ | 2898 | */ |
| 2897 | if (HostAdapter->ActiveCommands[TargetID] == 0) | 2899 | if (HostAdapter->ActiveCommands[TargetID] == 0) |
| 2898 | HostAdapter->LastSequencePoint[TargetID] = jiffies; | 2900 | HostAdapter->LastSequencePoint[TargetID] = jiffies; |
| 2899 | else if (jiffies - HostAdapter->LastSequencePoint[TargetID] > 4 * HZ) { | 2901 | else if (time_after(jiffies, HostAdapter->LastSequencePoint[TargetID] + 4 * HZ)) { |
| 2900 | HostAdapter->LastSequencePoint[TargetID] = jiffies; | 2902 | HostAdapter->LastSequencePoint[TargetID] = jiffies; |
| 2901 | QueueTag = BusLogic_OrderedQueueTag; | 2903 | QueueTag = BusLogic_OrderedQueueTag; |
| 2902 | } | 2904 | } |
