From: Stephen M. Cameron Date: Tue, 1 May 2012 16:42:20 +0000 (-0500) Subject: [SCSI] hpsa: enable bus master bit after pci_enable_device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5cb460a640cc733fee03adbbc9257246e6c3de08;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: James Bottomley --- 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,