Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64865
b: refs/heads/master
c: 868047f
h: refs/heads/master
i:
  64863: afbd37a
v: v3
  • Loading branch information
Matthew Wilcox authored and Linus Torvalds committed Sep 12, 2007
1 parent 8499301 commit a1ffc6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 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: 1a1a1a758bf0107d1f78ff1d622f45987803d894
refs/heads/master: 868047fcbb85dbb44ddd98c336fef83236a2c06a
17 changes: 10 additions & 7 deletions trunk/drivers/block/DAC960.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/


#define DAC960_DriverVersion "2.5.48"
#define DAC960_DriverDate "14 May 2006"
#define DAC960_DriverVersion "2.5.49"
#define DAC960_DriverDate "21 Aug 2007"


#include <linux/module.h>
Expand Down Expand Up @@ -1165,9 +1165,9 @@ static bool DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T
int i;


if (pci_set_dma_mask(Controller->PCIDevice, DAC690_V1_PciDmaMask))
if (pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK))
return DAC960_Failure(Controller, "DMA mask out of range");
Controller->BounceBufferLimit = DAC690_V1_PciDmaMask;
Controller->BounceBufferLimit = DMA_32BIT_MASK;

if ((hw_type == DAC960_PD_Controller) || (hw_type == DAC960_P_Controller)) {
CommandMailboxesSize = 0;
Expand Down Expand Up @@ -1368,9 +1368,12 @@ static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T
dma_addr_t CommandMailboxDMA;
DAC960_V2_CommandStatus_T CommandStatus;

if (pci_set_dma_mask(Controller->PCIDevice, DAC690_V2_PciDmaMask))
return DAC960_Failure(Controller, "DMA mask out of range");
Controller->BounceBufferLimit = DAC690_V2_PciDmaMask;
if (!pci_set_dma_mask(Controller->PCIDevice, DMA_64BIT_MASK))
Controller->BounceBufferLimit = DMA_64BIT_MASK;
else if (!pci_set_dma_mask(Controller->PCIDevice, DMA_32BIT_MASK))
Controller->BounceBufferLimit = DMA_32BIT_MASK;
else
return DAC960_Failure(Controller, "DMA mask out of range");

/* This is a temporary dma mapping, used only in the scope of this function */
CommandMailbox = pci_alloc_consistent(PCI_Device,
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/block/DAC960.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@
#define DAC960_V1_MaxPhysicalDevices 45
#define DAC960_V2_MaxPhysicalDevices 272

/*
Define the pci dma mask supported by DAC960 V1 and V2 Firmware Controlers
*/

#define DAC690_V1_PciDmaMask 0xffffffff
#define DAC690_V2_PciDmaMask 0xffffffffffffffffULL

/*
Define a 32/64 bit I/O Address data type.
*/
Expand Down

0 comments on commit a1ffc6e

Please sign in to comment.