summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Moese <michael.moese@men.de>2016-09-14 13:05:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-27 13:33:47 +0300
commit15bb81d334e99081e105b76e6d0b46657b4f4f2e (patch)
tree409bb607d0e43269cafe824494910bdccbb71d8c
parent1892fc2ee4c08d7ac17adb93f1341d9c3d7bdaf6 (diff)
downloadlinux-15bb81d334e99081e105b76e6d0b46657b4f4f2e.tar.xz
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>
-rw-r--r--drivers/mcb/mcb-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c
index b15a0349cd97..af4d2f26f1c6 100644
--- a/drivers/mcb/mcb-pci.c
+++ b/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");
return -ENODEV;
}
+ pci_set_master(pdev);
priv->mapbase = pci_resource_start(pdev, 0);
if (!priv->mapbase) {