Skip to contentSkip to conversation

PCI: clean up pci_find_slot() in pci.txt

PATCH Applied Yijing Wang 2 participants 2 messages Sep 2, 2013 – Sep 6, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: clean up pci_find_slot() in pci.txt

Pci_find_slot() has been removed from the kernel,
clean up its description in pci.txt

---
 Documentation/PCI/pci.txt |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
Documentation/PCI/pci.txt +4 -3
index bccf602..ac39338 100644
@@ -525,8 +525,10 @@ corresponding register block for you.
 6. Other interesting functions
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-pci_find_slot()			Find pci_dev corresponding to given bus and
-				slot numbers.
+pci_get_domain_bus_and_slot()	Find pci_dev corresponding to given domain,
+                        bus and slot and number. If the device is
+                        found, its reference count is increased and
+                        return the pci_dev pointer.
 pci_set_power_state()		Set PCI Power Management state (0=D0 ... 3=D3)
 pci_find_capability()		Find specified capability in device's capability
 				list.
@@ -582,7 +584,6 @@ having sane locking.
 
 pci_find_device()	Superseded by pci_get_device()
 pci_find_subsys()	Superseded by pci_get_subsys()
-pci_find_slot()		Superseded by pci_get_slot()
 
 
 The alternative is the traditional PCI device driver that walks PCI
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Yijing Wang

Pci_find_slot() has been removed from the kernel,
clean up its description in pci.txt

Applied to my pci/misc branch for v3.13. Thanks!

Quoted 9 lines
---
 Documentation/PCI/pci.txt |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
Documentation/PCI/pci.txt +0 -0
index bccf602..ac39338 100644

Documentation/PCI/pci.txt corresponding register block for you. · line 531

Quoted 9 lines
Documentation/PCI/pci.txt +4 -2
@@ -525,8 +525,10 @@ corresponding register block for you.
 6. Other interesting functions
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-pci_find_slot()			Find pci_dev corresponding to given bus and
-				slot numbers.
+pci_get_domain_bus_and_slot()	Find pci_dev corresponding to given domain,
+                        bus and slot and number. If the device is
+                        found, its reference count is increased and
+                        return the pci_dev pointer.

I fixed this indentation to match the surrounding text.

Documentation/PCI/pci.txt having sane locking. · line 585

Quoted 8 lines
Documentation/PCI/pci.txt +0 -1
 pci_set_power_state()		Set PCI Power Management state (0=D0 ... 3=D3)
 pci_find_capability()		Find specified capability in device's capability
 				list.
@@ -582,7 +584,6 @@ having sane locking.
 
 pci_find_device()	Superseded by pci_get_device()
 pci_find_subsys()	Superseded by pci_get_subsys()
-pci_find_slot()		Superseded by pci_get_slot()

I kept this mention and updated the replacement to be pci_get_domain_bus_and_slot(). The whole point of this section is to describe things that are no longer in the kernel but might be seen in old drivers.

Quoted 6 lines
Documentation/PCI/pci.txt +0 -0
 The alternative is the traditional PCI device driver that walks PCI
Signature · 1 line
1.7.1