This change will send an OFFLINE event to udev with the ERROR=DEAD environment variable set when the HC dies. By notifying user space the appropriate policies can be applied. i.e., * Collect error logs. * Notify the user that USB is no longer functional. * Perform a graceful reboot.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -98,6 +98,7 @@ struct usb_hcd { · 97 unmodified lines | ||
| 98 | 98 | #ifdef CONFIG_PM |
| 99 | 99 | struct work_struct wakeup_work; /* for remote wakeup */ |
| 100 | 100 | #endif |
| 101 | + struct work_struct died_work; /* for when the device dies */ | |
| 101 | 102 | |
| 102 | 103 | /* |
| 103 | 104 | * hardware info/state |