Page MenuHomeFreeBSD

D59499.diff
No OneTemporary

D59499.diff

diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -7339,9 +7339,11 @@
pci_power_reset(child);
BUS_RESET_POST(dev, child);
}
- if ((flags & DEVF_RESET_DETACH) != 0)
+ if ((flags & DEVF_RESET_DETACH) != 0) {
+ /* Detaching saved the state the reset just cleared. */
+ pci_restore_state(child);
device_probe_and_attach(child);
- else
+ } else
BUS_RESUME_CHILD(dev, child);
}
return (error);

File Metadata

Mime Type
text/plain
Expires
Wed, Sep 9, 3:19 AM (17 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38539170
Default Alt Text
D59499.diff (473 B)

Event Timeline