aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2004-06-11 03:15:00 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-06-11 03:15:00 -0700
commit42d5f1e11922ef68a9604c7655b778cb8c8765b7 (patch)
tree7cb44d643999b3e7bfa59a68fcb49156e8b51d5d /Documentation
parentf5bfafe34c580d0364b547e9e593aa25cf06d8b1 (diff)
downloadhistory-42d5f1e11922ef68a9604c7655b778cb8c8765b7.tar.gz
[PATCH] PCI: clarify pci.txt wrt IRQ allocation
I think we should make it explicit that PCI IRQs shouldn't be relied upon until after pci_enable_device(). This patch: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.7-rc3/2.6.7-rc3-mm1/broken-out/bk-acpi.patch does PCI interrupt routing (based on ACPI _PRT) and IRQ allocation at pci_enable_device()-time. (To avoid breaking things in 2.6, the above patch still allocates all PCI IRQs in pci_acpi_init(), before any drivers are initialized. But that shouldn't be needed by correct drivers, and I'd like to remove it in 2.7.) Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pci.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/pci.txt b/Documentation/pci.txt
index d30dc107ac62a1..41194763862ba8 100644
--- a/Documentation/pci.txt
+++ b/Documentation/pci.txt
@@ -166,8 +166,9 @@ count on these devices by calling pci_dev_put().
~~~~~~~~~~~~~~~~~~~
Before you do anything with the device you've found, you need to enable
it by calling pci_enable_device() which enables I/O and memory regions of
-the device, assigns missing resources if needed and wakes up the device
-if it was in suspended state. Please note that this function can fail.
+the device, allocates an IRQ if necessary, assigns missing resources if
+needed and wakes up the device if it was in suspended state. Please note
+that this function can fail.
If you want to use the device in bus mastering mode, call pci_set_master()
which enables the bus master bit in PCI_COMMAND register and also fixes