]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpqarray: enable bus mastering
authorDave Jones <davej@redhat.com>
Mon, 16 Mar 2009 09:06:05 +0000 (10:06 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 24 Mar 2009 11:35:17 +0000 (12:35 +0100)
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 <kyle@redhat.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cpqarray.c

index 5d39df14ed9032eef70f62f87ec21427f14ad6a1..ca268ca111598588ef52d9f7ca7e0fa87cfbde86 100644 (file)
@@ -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;