From: Dave Jones Date: Mon, 16 Mar 2009 09:06:05 +0000 (+0100) Subject: cpqarray: enable bus mastering X-Git-Tag: MMI-PSA29.97-13-9~29228^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0061d38642244892e17156f005bd7055fe744644;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cpqarray: enable bus mastering We've been carrying this patch for the last 3 years in Fedora, long past time we got it upstream... Call pci_set_master to enable bus-mastering if the BIOS hasn't done it already. Signed-off-by: Kyle McMartin Signed-off-by: Dave Jones Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 5d39df14ed90..ca268ca11159 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c @@ -617,6 +617,7 @@ static int cpqarray_pci_init(ctlr_info_t *c, struct pci_dev *pdev) int i; c->pci_dev = pdev; + pci_set_master(pdev); if (pci_enable_device(pdev)) { printk(KERN_ERR "cpqarray: Unable to Enable PCI device\n"); return -1;