Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1483147

[PATCH 1/2] Enable PCI bus mastering by default

From Johannes Thumshirn <jthumshirn@suse.de>
Newsgroups linux.kernel
Subject [PATCH 1/2] Enable PCI bus mastering by default
Date 2016-09-14 12:10 +0200
Message-ID <shfiF-7ZI-17@gated-at.bofh.it> (permalink)
References <shfiF-7ZI-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Michael Moese <michael.moese@men.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@men.de>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] MCB patches for v4.9 Johannes Thumshirn <jthumshirn@suse.de> - 2016-09-14 12:10 +0200
  [PATCH 1/2] Enable PCI bus mastering by default Johannes Thumshirn <jthumshirn@suse.de> - 2016-09-14 12:10 +0200
  [PATCH 2/2] Add a dma_device to mcb_device Johannes Thumshirn <jthumshirn@suse.de> - 2016-09-14 12:10 +0200

csiph-web