aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/PCI
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2014-02-12 05:35:25 -0500
committerBjorn Helgaas <bhelgaas@google.com>2014-02-13 12:45:01 -0500
commitfef07277f87735d077c78e12e25639a28d9913ab (patch)
tree61882fa4cfe0270a15f0657c7b7f1ebf9a96d608 /Documentation/PCI
parent9a8b0af9b1dacf1d865d4b8bff7360e5b318481a (diff)
PCI/MSI: Fix cut-and-paste errors in documentation
Function pci_enable_msi_range() is used in examples where pci_enable_msix_range() should have been used instead. Reported-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'Documentation/PCI')
-rw-r--r--Documentation/PCI/MSI-HOWTO.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/PCI/MSI-HOWTO.txt b/Documentation/PCI/MSI-HOWTO.txt
index 3c3080e9afef..96ee5eb9d4d4 100644
--- a/Documentation/PCI/MSI-HOWTO.txt
+++ b/Documentation/PCI/MSI-HOWTO.txt
@@ -274,8 +274,8 @@ possible, likely up to the limit returned by pci_msix_vec_count() function:
274 274
275static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec) 275static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
276{ 276{
277 return pci_enable_msi_range(adapter->pdev, adapter->msix_entries, 277 return pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
278 1, nvec); 278 1, nvec);
279} 279}
280 280
281Note the value of 'minvec' parameter is 1. As 'minvec' is inclusive, 281Note the value of 'minvec' parameter is 1. As 'minvec' is inclusive,
@@ -286,8 +286,8 @@ In this case the function could look like this:
286 286
287static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec) 287static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
288{ 288{
289 return pci_enable_msi_range(adapter->pdev, adapter->msix_entries, 289 return pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
290 FOO_DRIVER_MINIMUM_NVEC, nvec); 290 FOO_DRIVER_MINIMUM_NVEC, nvec);
291} 291}
292 292
2934.3.1.2 Exact number of MSI-X interrupts 2934.3.1.2 Exact number of MSI-X interrupts
@@ -299,8 +299,8 @@ parameters:
299 299
300static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec) 300static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
301{ 301{
302 return pci_enable_msi_range(adapter->pdev, adapter->msix_entries, 302 return pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
303 nvec, nvec); 303 nvec, nvec);
304} 304}
305 305
3064.3.1.3 Specific requirements to the number of MSI-X interrupts 3064.3.1.3 Specific requirements to the number of MSI-X interrupts