فهرست منبع

Merge branch 'pci/misc' into next

* pci/misc:
  PCI: Fix pci_check_and_unmask_intx() comment typos
  PCI: Never treat a VF as a multifunction device
Bjorn Helgaas 11 سال پیش
والد
کامیت
1255dfbb0c
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      drivers/pci/iov.c
  2. 1 1
      drivers/pci/pci.c

+ 1 - 0
drivers/pci/iov.c

@@ -84,6 +84,7 @@ static int virtfn_add(struct pci_dev *dev, int id, int reset)
 	virtfn->dev.parent = dev->dev.parent;
 	virtfn->dev.parent = dev->dev.parent;
 	virtfn->physfn = pci_dev_get(dev);
 	virtfn->physfn = pci_dev_get(dev);
 	virtfn->is_virtfn = 1;
 	virtfn->is_virtfn = 1;
+	virtfn->multifunction = 0;
 
 
 	for (i = 0; i < PCI_SRIOV_NUM_BARS; i++) {
 	for (i = 0; i < PCI_SRIOV_NUM_BARS; i++) {
 		res = dev->resource + PCI_IOV_RESOURCES + i;
 		res = dev->resource + PCI_IOV_RESOURCES + i;

+ 1 - 1
drivers/pci/pci.c

@@ -2961,7 +2961,7 @@ bool pci_check_and_mask_intx(struct pci_dev *dev)
 EXPORT_SYMBOL_GPL(pci_check_and_mask_intx);
 EXPORT_SYMBOL_GPL(pci_check_and_mask_intx);
 
 
 /**
 /**
- * pci_check_and_mask_intx - unmask INTx of no interrupt is pending
+ * pci_check_and_unmask_intx - unmask INTx if no interrupt is pending
  * @dev: the PCI device to operate on
  * @dev: the PCI device to operate on
  *
  *
  * Check if the device dev has its INTx line asserted, unmask it if not
  * Check if the device dev has its INTx line asserted, unmask it if not