mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
nitro_enclaves: Set Bus Master for the NE PCI device
Enable Bus Master for the NE PCI device, according to the PCI spec for submitting memory or I/O requests: Master Enable – Controls the ability of a PCI Express Endpoint to issue Memory and I/O Read/Write Requests, and the ability of a Root or Switch Port to forward Memory and I/O Read/Write Requests in the Upstream direction Cc: Andra Paraschiv <[email protected]> Cc: Alexandru Vasile <[email protected]> Cc: Alexandru Ciobotaru <[email protected]> Reviewed-by: Andra Paraschiv <[email protected]> Signed-off-by: Longpeng(Mike) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
1db376113e
commit
d874742f6a
1 file changed
+2
@@ -480,6 +480,8 @@ static int ne_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
goto free_ne_pci_dev;
|
||||
}
|
||||
|
||||
pci_set_master(pdev);
|
||||
|
||||
rc = pci_request_regions_exclusive(pdev, "nitro_enclaves");
|
||||
if (rc < 0) {
|
||||
dev_err(&pdev->dev, "Error in pci request regions [rc=%d]\n", rc);
|
||||
|
||||
Reference in new issue
Block a user