Skip to content

Commit

Permalink
[SCSI] hpsa: enable bus master bit after pci_enable_device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed May 10, 2012
1 parent e754b42 commit 5cb460a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5cb460a

Please sign in to comment.