Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: storage: Add MicroVault Flash Drive to unusual_devs

The device report an error capacity when read_capacity_16().
Using read_capacity_10() can get the correct capacity.

Signed-off-by: Ren Bigcren <bigcren.ren@sonymobile.com>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Oskar Andero <oskar.andero@sonymobile.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ren Bigcren and committed by
Greg Kroah-Hartman
e7a6121f 90625070

+7
+7
drivers/usb/storage/unusual_devs.h
··· 665 665 USB_SC_DEVICE, USB_PR_DEVICE, NULL, 666 666 US_FL_FIX_INQUIRY ), 667 667 668 + /* Submitted by Ren Bigcren <bigcren.ren@sonymobile.com> */ 669 + UNUSUAL_DEV( 0x054c, 0x02a5, 0x0100, 0x0100, 670 + "Sony Corp.", 671 + "MicroVault Flash Drive", 672 + USB_SC_DEVICE, USB_PR_DEVICE, NULL, 673 + US_FL_NO_READ_CAPACITY_16 ), 674 + 668 675 /* floppy reports multiple luns */ 669 676 UNUSUAL_DEV( 0x055d, 0x2020, 0x0000, 0x0210, 670 677 "SAMSUNG",