From: Johannes Thumshirn <jthumshirn@suse.de>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Linux Kernel Mailinglist <linux-kernel@vger.kernel.org>,
Michael Moese <michael.moese@men.de>,
Johannes Thumshirn <jthumshirn@suse.de>
Subject: [PATCH 1/2] Enable PCI bus mastering by default
Date: Wed, 14 Sep 2016 12:05:23 +0200 [thread overview]
Message-ID: <d5c91b79b9162faee93f2adeca0ca83797256b87.1473847321.git.jthumshirn@suse.de> (raw)
In-Reply-To: <cover.1473847321.git.jthumshirn@suse.de>
In-Reply-To: <cover.1473847321.git.jthumshirn@suse.de>
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
next prev parent reply other threads:[~2016-09-14 10:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-14 10:05 [PATCH 0/2] MCB patches for v4.9 Johannes Thumshirn
2016-09-14 10:05 ` Johannes Thumshirn [this message]
2016-09-27 10:33 ` [PATCH 1/2] Enable PCI bus mastering by default Greg KH
2016-09-14 10:05 ` [PATCH 2/2] Add a dma_device to mcb_device Johannes Thumshirn
2016-09-27 8:30 ` [PATCH 0/2] MCB patches for v4.9 Johannes Thumshirn
2016-09-27 10:32 ` Greg KH
2016-09-27 11:02 ` Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5c91b79b9162faee93f2adeca0ca83797256b87.1473847321.git.jthumshirn@suse.de \
--to=jthumshirn@suse.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.moese@men.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®