Page MenuHomeFreeBSD

D59499.1794442298.diff
No OneTemporary

Authored By
Unknown
Size
473 B
Referenced Files
None
Subscribers
None

D59499.1794442298.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
Thu, Nov 12, 12:11 AM (6 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38539170
Default Alt Text
D59499.1794442298.diff (473 B)

Event Timeline