[PATCH] USB Storage: INQUIRY fixup, mode-sense options, Genesys devices
This patch does a few things (all in the same section of code). It started
life as patches as226b, as280, and as275. Later it was merged into as226e
and I added significantly to it.
First, this patch introduces a new config option to allow people to enable
write-protect detection for their USB devices. With some luck, we've
finally got it right and can eventually remove this option in favor of
enabling this behavior all the time.
Next, we change how we force some flags on -- it turns out that there are
some 'generic' entries in the SCSI devinfo which was overriding us when we
didn't want it.
Finally, we add a safety check to the workaround for GeneSys Logic devices
-- if the max_sectors parameter has already been turned down, we won't turn
it up.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Showing
Please register or sign in to comment