[SCSI] hpsa: enable bus master bit after pci_enable_device
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Tue, 1 May 2012 16:42:20 +0000 (11:42 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 08:10:00 +0000 (09:10 +0100)
pci_disable_device() disables the bus master bit and pci_enable_device does
not re-enable it.  It needs to be enabled.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c

index 8075c54bac03ca28524806e99cd577939108ab33..8e6c4abc72ec492b772b9cda75fff33cbd486162 100644 (file)
@@ -3930,6 +3930,9 @@ static int __devinit hpsa_pci_init(struct ctlr_info *h)
                return err;
        }
 
+       /* Enable bus mastering (pci_disable_device may disable this) */
+       pci_set_master(h->pdev);
+
        err = pci_request_regions(h->pdev, HPSA);
        if (err) {
                dev_err(&h->pdev->dev,