aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-06-13 03:52:13 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-16 17:30:15 -0400
commit8c1c699fec9e9021bf6ff0285dee086bb27aec90 (patch)
tree4af7bd96c1b651633ff7b6721959aeacd120e4ee /include/linux/pci.h
parentc465def6bfe834b62623caa9b98f2d4f4739875a (diff)
PCI: cleanup Function Level Reset
This patch enhances the FLR functions: 1) remove disable_irq() so the shared IRQ won't be disabled. 2) replace the 1s wait with 100, 200 and 400ms wait intervals for the Pending Transaction. 3) replace mdelay() with msleep(). 4) add might_sleep(). 5) lock the device to prevent PM suspend from accessing the CSRs during the reset. 6) coding style fixes. Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 61d9b790d21c..91b06be2f01e 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -702,8 +702,8 @@ int pcix_get_mmrbc(struct pci_dev *dev);
702int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc); 702int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc);
703int pcie_get_readrq(struct pci_dev *dev); 703int pcie_get_readrq(struct pci_dev *dev);
704int pcie_set_readrq(struct pci_dev *dev, int rq); 704int pcie_set_readrq(struct pci_dev *dev, int rq);
705int __pci_reset_function(struct pci_dev *dev);
705int pci_reset_function(struct pci_dev *dev); 706int pci_reset_function(struct pci_dev *dev);
706int pci_execute_reset_function(struct pci_dev *dev);
707void pci_update_resource(struct pci_dev *dev, int resno); 707void pci_update_resource(struct pci_dev *dev, int resno);
708int __must_check pci_assign_resource(struct pci_dev *dev, int i); 708int __must_check pci_assign_resource(struct pci_dev *dev, int i);
709int pci_select_bars(struct pci_dev *dev, unsigned long flags); 709int pci_select_bars(struct pci_dev *dev, unsigned long flags);