mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
PCI: Remove unused function __pci_reset_function()
The last caller of __pci_reset_function() has been removed. Remove the function as well. Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
753f612471
commit
79e699b648
@ -4145,35 +4145,6 @@ static void pci_dev_restore(struct pci_dev *dev)
|
|||||||
err_handler->reset_done(dev);
|
err_handler->reset_done(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* __pci_reset_function - reset a PCI device function
|
|
||||||
* @dev: PCI device to reset
|
|
||||||
*
|
|
||||||
* Some devices allow an individual function to be reset without affecting
|
|
||||||
* other functions in the same device. The PCI device must be responsive
|
|
||||||
* to PCI config space in order to use this function.
|
|
||||||
*
|
|
||||||
* The device function is presumed to be unused when this function is called.
|
|
||||||
* Resetting the device will make the contents of PCI configuration space
|
|
||||||
* random, so any caller of this must be prepared to reinitialise the
|
|
||||||
* device including MSI, bus mastering, BARs, decoding IO and memory spaces,
|
|
||||||
* etc.
|
|
||||||
*
|
|
||||||
* Returns 0 if the device function was successfully reset or negative if the
|
|
||||||
* device doesn't support resetting a single function.
|
|
||||||
*/
|
|
||||||
int __pci_reset_function(struct pci_dev *dev)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
pci_dev_lock(dev);
|
|
||||||
ret = __pci_reset_function_locked(dev);
|
|
||||||
pci_dev_unlock(dev);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL_GPL(__pci_reset_function);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __pci_reset_function_locked - reset a PCI device function while holding
|
* __pci_reset_function_locked - reset a PCI device function while holding
|
||||||
* the @dev mutex lock.
|
* the @dev mutex lock.
|
||||||
@ -4264,8 +4235,8 @@ int pci_probe_reset_function(struct pci_dev *dev)
|
|||||||
*
|
*
|
||||||
* This function does not just reset the PCI portion of a device, but
|
* This function does not just reset the PCI portion of a device, but
|
||||||
* clears all the state associated with the device. This function differs
|
* clears all the state associated with the device. This function differs
|
||||||
* from __pci_reset_function in that it saves and restores device state
|
* from __pci_reset_function_locked() in that it saves and restores device state
|
||||||
* over the reset.
|
* over the reset and takes the PCI device lock.
|
||||||
*
|
*
|
||||||
* Returns 0 if the device function was successfully reset or negative if the
|
* Returns 0 if the device function was successfully reset or negative if the
|
||||||
* device doesn't support resetting a single function.
|
* device doesn't support resetting a single function.
|
||||||
@ -4300,7 +4271,7 @@ EXPORT_SYMBOL_GPL(pci_reset_function);
|
|||||||
*
|
*
|
||||||
* This function does not just reset the PCI portion of a device, but
|
* This function does not just reset the PCI portion of a device, but
|
||||||
* clears all the state associated with the device. This function differs
|
* clears all the state associated with the device. This function differs
|
||||||
* from __pci_reset_function() in that it saves and restores device state
|
* from __pci_reset_function_locked() in that it saves and restores device state
|
||||||
* over the reset. It also differs from pci_reset_function() in that it
|
* over the reset. It also differs from pci_reset_function() in that it
|
||||||
* requires the PCI device lock to be held.
|
* requires the PCI device lock to be held.
|
||||||
*
|
*
|
||||||
|
@ -1089,7 +1089,6 @@ int pcie_set_mps(struct pci_dev *dev, int mps);
|
|||||||
int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,
|
int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,
|
||||||
enum pcie_link_width *width);
|
enum pcie_link_width *width);
|
||||||
void pcie_flr(struct pci_dev *dev);
|
void pcie_flr(struct pci_dev *dev);
|
||||||
int __pci_reset_function(struct pci_dev *dev);
|
|
||||||
int __pci_reset_function_locked(struct pci_dev *dev);
|
int __pci_reset_function_locked(struct pci_dev *dev);
|
||||||
int pci_reset_function(struct pci_dev *dev);
|
int pci_reset_function(struct pci_dev *dev);
|
||||||
int pci_reset_function_locked(struct pci_dev *dev);
|
int pci_reset_function_locked(struct pci_dev *dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user