From patchwork Wed Apr 7 12:59:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Surbhi Palande X-Patchwork-Id: 49603 X-Patchwork-Delegate: stefan.bader@canonical.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id E003AB7D06 for ; Wed, 7 Apr 2010 22:59:50 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1NzUr6-0003E5-Jt; Wed, 07 Apr 2010 13:59:40 +0100 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.69) (envelope-from ) id 1NzUr4-0003Da-Gb for kernel-team@lists.canonical.com; Wed, 07 Apr 2010 13:59:38 +0100 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1NzUr4-0006wv-FC for ; Wed, 07 Apr 2010 13:59:38 +0100 Received: from a88-112-254-38.elisa-laajakaista.fi ([88.112.254.38] helo=canonical.com) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1NzUr4-00007u-8Z for kernel-team@lists.canonical.com; Wed, 07 Apr 2010 13:59:38 +0100 From: Surbhi Palande To: kernel-team@lists.canonical.com Subject: [PATCH][Upstream] USB: Add ids of SamsungYP-M1 to restrict max sector Date: Wed, 7 Apr 2010 15:59:36 +0300 Message-Id: <1270645176-4443-1-git-send-email-surbhi.palande@canonical.com> X-Mailer: git-send-email 1.6.3.3 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com 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 Lucid. From 13a918b7c5917a702f14eaa938f10194417482ba Mon Sep 17 00:00:00 2001 From: Surbhi Palande Date: Fri, 19 Mar 2010 15:58:29 +0200 Subject: [PATCH] USB: Add ids of SamsungYP-M1 to restrict max sectors http://launchpad.net/bugs/503790 The Samsung YP-M1 does not work unless the following is done manually "echo 128 > /sys/block/sdb/device/max_sectors" as root. This quirk fixes having to do this manually. BugLink: http://launchpad.net/bugs/lp503790 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 f6ab789..6469673 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -133,6 +133,13 @@ UNUSUAL_DEV( 0x0419, 0xaace, 0x0100, 0x0100, US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), +/* Reported by Surbhi Palande */ +UNUSUAL_DEV( 0x04e8, 0x5123, 0x0000, 0x0000, + "Samsung", + "YP-M1", + US_SC_DEVICE, US_PR_DEVICE, NULL, + US_FL_MAX_SECTORS_64), + /* Reported by Christian Leber */ UNUSUAL_DEV( 0x0419, 0xaaf5, 0x0100, 0x0100, "TrekStor",