Skip to content

Commit

Permalink
NVMe: Enable device DMA
Browse files Browse the repository at this point in the history
Need to call pci_set_master() to enable device DMA

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent 0ee5a7d commit f64d336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@ static int __devinit nvme_probe(struct pci_dev *pdev,

if (pci_enable_device_mem(pdev))
goto free;
pci_set_master(pdev);

INIT_LIST_HEAD(&dev->namespaces);
dev->pci_dev = pdev;
Expand Down

0 comments on commit f64d336

Please sign in to comment.