Browse Source

mcb: Enable PCI bus mastering by default

In order to successfully perform DMA operations on PCI devices,
it is necessary to enble PCI bus mastering, so enable it by default.

Signed-off-by: Michael Moese <michael.moese@men.de>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Michael Moese 9 years ago
parent
commit
15bb81d334
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/mcb/mcb-pci.c

+ 1 - 0
drivers/mcb/mcb-pci.c

@@ -46,6 +46,7 @@ static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 		dev_err(&pdev->dev, "Failed to enable PCI device\n");
 		dev_err(&pdev->dev, "Failed to enable PCI device\n");
 		return -ENODEV;
 		return -ENODEV;
 	}
 	}
+	pci_set_master(pdev);
 
 
 	priv->mapbase = pci_resource_start(pdev, 0);
 	priv->mapbase = pci_resource_start(pdev, 0);
 	if (!priv->mapbase) {
 	if (!priv->mapbase) {