Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171003148
D59499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
473 B
Referenced Files
None
Subscribers
None
D59499.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D59499: pci: restore configuration state after resetting a detached child
Attached
Detach File
Event Timeline
Log In to Comment