summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.c
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2012-05-01 18:42:20 +0200
committerJames Bottomley <JBottomley@Parallels.com>2012-05-10 10:10:00 +0200
commit5cb460a640cc733fee03adbbc9257246e6c3de08 (patch)
treeab353dd196458a85dab1cec05c10b3ddf68fa079 /drivers/scsi/hpsa.c
parent[SCSI] hpsa: do not skip disabled devices (diff)
downloadlinux-5cb460a640cc733fee03adbbc9257246e6c3de08.tar.xz
linux-5cb460a640cc733fee03adbbc9257246e6c3de08.zip
[SCSI] hpsa: enable bus master bit after pci_enable_device
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>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r--drivers/scsi/hpsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 8075c54bac03..8e6c4abc72ec 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -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,