diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-12-07 16:39:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 14:55:26 -0500 |
commit | a0bb108112a872c0b0c4b3ef4974f95fb75b155d (patch) | |
tree | 86f7327949289b70960f57b07b99054e240a91e4 /Documentation/kernel-parameters.txt | |
parent | 8e4ceb38eb5bbaef22fc00abe9bc11e26bea2ab5 (diff) |
USB: usb-storage: add BAD_SENSE flag
This patch (as1311) fixes a problem in usb-storage: Some devices are
pretty broken when it comes to reporting sense data. The information
they send back indicates that they have more than 18 bytes of sense
data available, but when the system asks for more than 18 they fail or
hang. The symptom is that probing fails with multiple resets.
The patch adds a new BAD_SENSE flag to indicate that usb-storage
should never ask for more than 18 bytes of sense data. The flag can
be set in an unusual_devs entry or via the "quirks=" module parameter,
and it is set automatically whenever a REQUEST SENSE command for more
than 18 bytes fails or times out.
An unusual_devs entry is added for the Agfa photo frame, which uses a
Prolific chip having this bug.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Daniel Kukula <daniel.kuku@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/kernel-parameters.txt')
-rw-r--r-- | Documentation/kernel-parameters.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 777dc8a32df8..3f886e298f62 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -2663,6 +2663,8 @@ and is between 256 and 4096 characters. It is defined in the file | |||
2663 | to a common usb-storage quirk flag as follows: | 2663 | to a common usb-storage quirk flag as follows: |
2664 | a = SANE_SENSE (collect more than 18 bytes | 2664 | a = SANE_SENSE (collect more than 18 bytes |
2665 | of sense data); | 2665 | of sense data); |
2666 | b = BAD_SENSE (don't collect more than 18 | ||
2667 | bytes of sense data); | ||
2666 | c = FIX_CAPACITY (decrease the reported | 2668 | c = FIX_CAPACITY (decrease the reported |
2667 | device capacity by one sector); | 2669 | device capacity by one sector); |
2668 | h = CAPACITY_HEURISTICS (decrease the | 2670 | h = CAPACITY_HEURISTICS (decrease the |