mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
[SCSI] mpt fusion: Request I/O resources only when required
This patch modifies the I/O resource allocation behavior of FUSION driver. The current version of driver allocates the I/O resources even if they are not required and this creates trouble in low resource environments. This driver now uses pci_enable_device_mem/pci_enable_device functions to differentiate the resource allocations. Signed-off-by: Sathya Prakash <sathya.prakash@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
2f7ecc55b3
commit
e78d5b8f1e
2 changed files with 44 additions and 7 deletions
|
@ -629,6 +629,7 @@ typedef struct _MPT_ADAPTER
|
|||
dma_addr_t HostPageBuffer_dma;
|
||||
int mtrr_reg;
|
||||
struct pci_dev *pcidev; /* struct pci_dev pointer */
|
||||
int bars; /* bitmask of BAR's that must be configured */
|
||||
u8 __iomem *memmap; /* mmap address */
|
||||
struct Scsi_Host *sh; /* Scsi Host pointer */
|
||||
SpiCfgData spi_data; /* Scsi config. data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue