diff options
author | Yu Zhao <yu.zhao@intel.com> | 2009-06-13 03:52:13 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-16 17:30:15 -0400 |
commit | 8c1c699fec9e9021bf6ff0285dee086bb27aec90 (patch) | |
tree | 4af7bd96c1b651633ff7b6721959aeacd120e4ee /include/linux/pci.h | |
parent | c465def6bfe834b62623caa9b98f2d4f4739875a (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.h | 2 |
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); | |||
702 | int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc); | 702 | int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc); |
703 | int pcie_get_readrq(struct pci_dev *dev); | 703 | int pcie_get_readrq(struct pci_dev *dev); |
704 | int pcie_set_readrq(struct pci_dev *dev, int rq); | 704 | int pcie_set_readrq(struct pci_dev *dev, int rq); |
705 | int __pci_reset_function(struct pci_dev *dev); | ||
705 | int pci_reset_function(struct pci_dev *dev); | 706 | int pci_reset_function(struct pci_dev *dev); |
706 | int pci_execute_reset_function(struct pci_dev *dev); | ||
707 | void pci_update_resource(struct pci_dev *dev, int resno); | 707 | void pci_update_resource(struct pci_dev *dev, int resno); |
708 | int __must_check pci_assign_resource(struct pci_dev *dev, int i); | 708 | int __must_check pci_assign_resource(struct pci_dev *dev, int i); |
709 | int pci_select_bars(struct pci_dev *dev, unsigned long flags); | 709 | int pci_select_bars(struct pci_dev *dev, unsigned long flags); |