usb-storage: set CAPACITY_HEURISTICS flag for bad vendors
commitb73f5e67fceec460f476f0cb1f910506c43b846d
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 20 Jan 2009 20:33:34 +0000 (20 15:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:41:41 +0000 (24 16:41 -0800)
tree5fea4d307bf01a6e23760c4d1f993ee7ea72e28e
parentd9ef5ce775b238646b16ac36ec09f0575fb1ac9f
usb-storage: set CAPACITY_HEURISTICS flag for bad vendors

commit a81a81a25d3ecdab777abca87c5ddf484056103d upstream.

This patch (as1194b) makes usb-storage set the CAPACITY_HEURISTICS flag
for all devices made by Nokia, Nikon, or Motorola.  These companies
seem to include the READ CAPACITY bug in all of their devices.

Since cell phones and digital cameras rely on flash storage, which
always has an even number of sectors, setting CAPACITY_HEURISTICS
shouldn't cause any problems.  Not even if the companies wise up and
start making devices without the bug.

A large number of unusual_devs entries are now unnecessary, so the
patch removes them.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/scsiglue.c
drivers/usb/storage/unusual_devs.h