diff options
author | Benjamin Herrenschmidt <[email protected]> | 2009-10-13 15:53:47 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2009-10-14 14:54:44 -0700 |
commit | b8430e1b82b7e514d76a88eb70a7d8831d50df1e (patch) | |
tree | 8be6895f39a120d4919a543e9a3c39a6917bf350 /scripts/basic/docproc.c | |
parent | 36f21329d217016f0f212f0752ae595b4a76754d (diff) |
usb-storage: Workaround devices with bogus sense size
usb-storage: Workaround devices with bogus sense size
Some devices, such as Huawei E169, advertise more than the standard
amount of sense data, causing us to set US_FL_SANE_SENSE, assuming
they support it. However, they subsequently fail the request sense
with that size.
This works around it generically. When a sense request fails due to
a device returning an error, US_FL_SANE_SENSE was set, and that sense
request used a larger sense size, we retry with a smaller size before
giving up.
Based on an original patch by Ben Efros <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Acked-by: Alan Stern <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions