usb-storage: set CAPACITY_HEURISTICS flag for bad vendors
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 20 Jan 2009 20:33:55 +0000 (15:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 25 Jan 2009 00:36:20 +0000 (16:36 -0800)
commit8b096b5abc03996b7b5078a4939ab25a2d770e27
treeb065294fa4dfe5ae1c94d34a313641aed23b1747
parent1d6abc54fc2878cb0dbca81c880b4cf07ea03ec0
usb-storage: set CAPACITY_HEURISTICS flag for bad vendors

commit a81a81a25d3ecdab777abca87c5ddf484056103d upstream.

This patch (as1194c) 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