aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/aic94xx/aic94xx_init.c9
-rw-r--r--drivers/scsi/ipr.c22
-rw-r--r--drivers/scsi/ips.c9
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c5
-rw-r--r--drivers/scsi/nsp32.c10
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c2
6 files changed, 10 insertions, 47 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c
index 27852b43b904..1c0d7578e791 100644
--- a/drivers/scsi/aic94xx/aic94xx_init.c
+++ b/drivers/scsi/aic94xx/aic94xx_init.c
@@ -223,13 +223,8 @@ static int __devinit asd_common_setup(struct asd_ha_struct *asd_ha)
223{ 223{
224 int err, i; 224 int err, i;
225 225
226 err = pci_read_config_byte(asd_ha->pcidev, PCI_REVISION_ID, 226 asd_ha->revision_id = asd_ha->pcidev->revision;
227 &asd_ha->revision_id); 227
228 if (err) {
229 asd_printk("couldn't read REVISION ID register of %s\n",
230 pci_name(asd_ha->pcidev));
231 goto Err;
232 }
233 err = -ENODEV; 228 err = -ENODEV;
234 if (asd_ha->revision_id < AIC9410_DEV_REV_B0) { 229 if (asd_ha->revision_id < AIC9410_DEV_REV_B0) {
235 asd_printk("%s is revision %s (%X), which is not supported\n", 230 asd_printk("%s is revision %s (%X), which is not supported\n",
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 4a3083ea59d5..b3bf77f1ec05 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -5373,18 +5373,12 @@ static const u16 ipr_blocked_processors[] = {
5373 **/ 5373 **/
5374static int ipr_invalid_adapter(struct ipr_ioa_cfg *ioa_cfg) 5374static int ipr_invalid_adapter(struct ipr_ioa_cfg *ioa_cfg)
5375{ 5375{
5376 u8 rev_id;
5377 int i; 5376 int i;
5378 5377
5379 if (ioa_cfg->type == 0x5702) { 5378 if ((ioa_cfg->type == 0x5702) && (ioa_cfg->pdev->revision < 4)) {
5380 if (pci_read_config_byte(ioa_cfg->pdev, PCI_REVISION_ID, 5379 for (i = 0; i < ARRAY_SIZE(ipr_blocked_processors); i++){
5381 &rev_id) == PCIBIOS_SUCCESSFUL) { 5380 if (__is_processor(ipr_blocked_processors[i]))
5382 if (rev_id < 4) { 5381 return 1;
5383 for (i = 0; i < ARRAY_SIZE(ipr_blocked_processors); i++){
5384 if (__is_processor(ipr_blocked_processors[i]))
5385 return 1;
5386 }
5387 }
5388 } 5382 }
5389 } 5383 }
5390 return 0; 5384 return 0;
@@ -7541,13 +7535,7 @@ static int __devinit ipr_probe_ioa(struct pci_dev *pdev,
7541 else 7535 else
7542 ioa_cfg->transop_timeout = IPR_OPERATIONAL_TIMEOUT; 7536 ioa_cfg->transop_timeout = IPR_OPERATIONAL_TIMEOUT;
7543 7537
7544 rc = pci_read_config_byte(pdev, PCI_REVISION_ID, &ioa_cfg->revid); 7538 ioa_cfg->revid = pdev->revision;
7545
7546 if (rc != PCIBIOS_SUCCESSFUL) {
7547 dev_err(&pdev->dev, "Failed to read PCI revision ID\n");
7548 rc = -EIO;
7549 goto out_scsi_host_put;
7550 }
7551 7539
7552 ipr_regs_pci = pci_resource_start(pdev, 0); 7540 ipr_regs_pci = pci_resource_start(pdev, 0);
7553 7541
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index 8b704f73055a..40f148e0833f 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -7148,7 +7148,6 @@ ips_init_phase1(struct pci_dev *pci_dev, int *indexPtr)
7148 uint32_t mem_addr; 7148 uint32_t mem_addr;
7149 uint32_t io_len; 7149 uint32_t io_len;
7150 uint32_t mem_len; 7150 uint32_t mem_len;
7151 uint8_t revision_id;
7152 uint8_t bus; 7151 uint8_t bus;
7153 uint8_t func; 7152 uint8_t func;
7154 uint8_t irq; 7153 uint8_t irq;
@@ -7227,12 +7226,6 @@ ips_init_phase1(struct pci_dev *pci_dev, int *indexPtr)
7227 } 7226 }
7228 } 7227 }
7229 7228
7230 /* get the revision ID */
7231 if (pci_read_config_byte(pci_dev, PCI_REVISION_ID, &revision_id)) {
7232 IPS_PRINTK(KERN_WARNING, pci_dev, "Can't get revision id.\n");
7233 return -1;
7234 }
7235
7236 subdevice_id = pci_dev->subsystem_device; 7229 subdevice_id = pci_dev->subsystem_device;
7237 7230
7238 /* found a controller */ 7231 /* found a controller */
@@ -7258,7 +7251,7 @@ ips_init_phase1(struct pci_dev *pci_dev, int *indexPtr)
7258 ha->mem_ptr = mem_ptr; 7251 ha->mem_ptr = mem_ptr;
7259 ha->ioremap_ptr = ioremap_ptr; 7252 ha->ioremap_ptr = ioremap_ptr;
7260 ha->host_num = (uint32_t) index; 7253 ha->host_num = (uint32_t) index;
7261 ha->revision_id = revision_id; 7254 ha->revision_id = pci_dev->revision;
7262 ha->slot_num = PCI_SLOT(pci_dev->devfn); 7255 ha->slot_num = PCI_SLOT(pci_dev->devfn);
7263 ha->device_id = pci_dev->device; 7256 ha->device_id = pci_dev->device;
7264 ha->subdevice_id = subdevice_id; 7257 ha->subdevice_id = subdevice_id;
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index dcb4ba0ecee1..955b2e48d041 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -1578,10 +1578,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid)
1578 INIT_LIST_HEAD(&phba->fc_nodes); 1578 INIT_LIST_HEAD(&phba->fc_nodes);
1579 1579
1580 pci_set_master(pdev); 1580 pci_set_master(pdev);
1581 retval = pci_set_mwi(pdev); 1581 pci_try_set_mwi(pdev);
1582 if (retval)
1583 dev_printk(KERN_WARNING, &pdev->dev,
1584 "Warning: pci_set_mwi returned %d\n", retval);
1585 1582
1586 if (pci_set_dma_mask(phba->pcidev, DMA_64BIT_MASK) != 0) 1583 if (pci_set_dma_mask(phba->pcidev, DMA_64BIT_MASK) != 0)
1587 if (pci_set_dma_mask(phba->pcidev, DMA_32BIT_MASK) != 0) 1584 if (pci_set_dma_mask(phba->pcidev, DMA_32BIT_MASK) != 0)
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index f6f561d26bf0..3e9765f0281d 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -3487,15 +3487,6 @@ static int nsp32_resume(struct pci_dev *pdev)
3487 return 0; 3487 return 0;
3488} 3488}
3489 3489
3490/* Enable wake event */
3491static int nsp32_enable_wake(struct pci_dev *pdev, pci_power_t state, int enable)
3492{
3493 struct Scsi_Host *host = pci_get_drvdata(pdev);
3494
3495 nsp32_msg(KERN_INFO, "pci-enable_wake: stub, pdev=0x%p, enable=%d, slot=%s, host=0x%p", pdev, enable, pci_name(pdev), host);
3496
3497 return 0;
3498}
3499#endif 3490#endif
3500 3491
3501/************************************************************************ 3492/************************************************************************
@@ -3571,7 +3562,6 @@ static struct pci_driver nsp32_driver = {
3571#ifdef CONFIG_PM 3562#ifdef CONFIG_PM
3572 .suspend = nsp32_suspend, 3563 .suspend = nsp32_suspend,
3573 .resume = nsp32_resume, 3564 .resume = nsp32_resume,
3574 .enable_wake = nsp32_enable_wake,
3575#endif 3565#endif
3576}; 3566};
3577 3567
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 2a45aec4ff29..cf94f8636ba5 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -296,7 +296,7 @@ qla24xx_pci_config(scsi_qla_host_t *ha)
296 d &= ~PCI_ROM_ADDRESS_ENABLE; 296 d &= ~PCI_ROM_ADDRESS_ENABLE;
297 pci_write_config_dword(ha->pdev, PCI_ROM_ADDRESS, d); 297 pci_write_config_dword(ha->pdev, PCI_ROM_ADDRESS, d);
298 298
299 pci_read_config_word(ha->pdev, PCI_REVISION_ID, &ha->chip_revision); 299 ha->chip_revision = ha->pdev->revision;
300 300
301 /* Get PCI bus information. */ 301 /* Get PCI bus information. */
302 spin_lock_irqsave(&ha->hardware_lock, flags); 302 spin_lock_irqsave(&ha->hardware_lock, flags);