Commit f64d3365 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

NVMe: Enable device DMA



Need to call pci_set_master() to enable device DMA

Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 0ee5a7d7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;