[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <d5c91b79b9162faee93f2adeca0ca83797256b87.1473847321.git.jthumshirn@suse.de>
Date: Wed, 14 Sep 2016 12:05:23 +0200
From: Johannes Thumshirn <jthumshirn@...e.de>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Michael Moese <michael.moese@....de>,
Johannes Thumshirn <jthumshirn@...e.de>
Subject: [PATCH 1/2] Enable PCI bus mastering by default
From: Michael Moese <michael.moese@....de>
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@....de>
Signed-off-by: Johannes Thumshirn <jthumshirn@...e.de>
---
drivers/mcb/mcb-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c
index b15a034..af4d2f2 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) {
--
1.8.5.6
Powered by blists - more mailing lists