From 823f631d1cfda250e8c64e43d65d4f22368889ea Mon Sep 17 00:00:00 2001 From: Surbhi Palande Date: Wed, 29 Sep 2010 11:42:22 +0300 Subject: [PATCH] UBUNTU: USB: Add ids of SamsungYP-M1 to restrict max sector BugLink: http://launchpad.net/bugs/503790 This quirk fixes bug 503790 on launchpad where a user complained of having to manually set the max sectors for a USB thumb drive to make it work. This small quirk sets the sector size explicitly in the kernel code. This patch is tested by the reporter of the bug. Do consider merging this for Maverick. Signed-off-by: Surbhi Palande --- drivers/usb/storage/unusual_devs.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index da7fd89..1c1ae17 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -481,6 +481,13 @@ UNUSUAL_DEV( 0x04e8, 0x507c, 0x0220, 0x0220, US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_MAX_SECTORS_64), +/* Reported by José Luis Ricón */ +UNUSUAL_DEV( 0x04e8, 0x5123, 0x0000, 0x0000, + "Samsung", + "YP-M1", + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_MAX_SECTORS_64), + /* Entry and supporting patch by Theodore Kilgore . * Device uses standards-violating 32-byte Bulk Command Block Wrappers and * reports itself as "Proprietary SCSI Bulk." Cf. device entry 0x084d:0x0011. -- 1.7.0.4