]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: storage: set CAPACITY_HEURISTICS flag for bad vendors
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 18 Dec 2008 21:41:49 +0000 (16:41 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 18:00:12 +0000 (10:00 -0800)
commita81a81a25d3ecdab777abca87c5ddf484056103d
tree16cce845ef4737f0d0ce2d71981bb3e61dadb9a9
parentc838ea4626d6e982489ff519f9ecf5e1649ca90b
USB: storage: set CAPACITY_HEURISTICS flag for bad vendors

This patch (as1194) 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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/scsiglue.c
drivers/usb/storage/unusual_devs.h