History

usb/hcd: Send a uevent signaling that the host controller had died

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.

Raul E Rangel committed 7 years ago

Commit a4d6a291 parent cf283693 files · +52 −0Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/usb/hcd.h+1−0
@@ -98,6 +98,7 @@ struct usb_hcd { · 97 unmodified lines
9898 #ifdef CONFIG_PM
9999 struct work_struct wakeup_work; /* for remote wakeup */
100100 #endif
101+ struct work_struct died_work; /* for when the device dies */
101102
102103 /*
103104 * hardware info/state

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t