diff options
author | Dexuan Cui <dexuan.cui@intel.com> | 2009-12-07 00:03:21 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-12-16 16:37:50 -0500 |
commit | b9c3b266411d27f1a6466c19d146d08db576bfea (patch) | |
tree | c310b37e7dff6607e22eca0b690c2a3f290c85a9 /drivers/pci/quirks.c | |
parent | 2820f333e3b4ad96590093efbed7b3400bcf492b (diff) |
PCI: support device-specific reset methods
Add a new type of quirk for resetting devices at pci_dev_reset time.
This is necessary to handle device with nonstandard reset procedures,
especially useful for guest drivers.
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r-- | drivers/pci/quirks.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index f70f4e23225c..86c9177a6c6c 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -2636,6 +2636,15 @@ static int __init pci_apply_final_quirks(void) | |||
2636 | } | 2636 | } |
2637 | 2637 | ||
2638 | fs_initcall_sync(pci_apply_final_quirks); | 2638 | fs_initcall_sync(pci_apply_final_quirks); |
2639 | |||
2640 | /* | ||
2641 | * Followings are device-specific reset methods which can be used to | ||
2642 | * reset a single function if other methods (e.g. FLR, PM D0->D3) are | ||
2643 | * not available. | ||
2644 | */ | ||
2645 | struct pci_dev_reset_methods pci_dev_reset_methods[] = { | ||
2646 | { 0 } | ||
2647 | }; | ||
2639 | #else | 2648 | #else |
2640 | void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {} | 2649 | void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) {} |
2641 | #endif | 2650 | #endif |