forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: Export QUIRK_RESET_MORPHS through sysfs
Some devices which use mode switching revert to their primary mode as they are reset. They must not be reset for error handling. As user spaces makes the switch it also has to tell the kernel that a device is quirky. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,3 +159,14 @@ Description: | |
device. This is useful to ensure auto probing won't | ||
match the driver to the device. For example: | ||
# echo "046d c315" > /sys/bus/usb/drivers/foo/remove_id | ||
|
||
What: /sys/bus/usb/device/.../avoid_reset | ||
Date: December 2009 | ||
Contact: Oliver Neukum <[email protected]> | ||
Description: | ||
Writing 1 to this file tells the kernel that this | ||
device will morph into another mode when it is reset. | ||
Drivers will not use reset for error handling for | ||
such devices. | ||
Users: | ||
usb_modeswitch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters