Patchwork [11/17] usb: unusual devs patch for Nokia 5310 Music Xpress

login
register
mail settings
Submitter Colin King
Date Feb. 15, 2010, 2:59 p.m.
Message ID <1266245965-20429-12-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/45379/
State Accepted
Delegated to: Stefan Bader
Headers show

Comments

Colin King - Feb. 15, 2010, 2:59 p.m.
From: David Almaroad <dalmaroad@gmail.com>

BugLink: http://bugs.launchpad.net/bugs/522059

The Nokia 5310 Music Xpress phone reports one too many sectors in
usb-storage mode.  This patch resolves that.

Signed-off-by: David Almaroad <dalmaroad@gmail.com>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/usb/storage/unusual_devs.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index 93197fd..adb8caf 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -247,6 +247,13 @@  UNUSUAL_DEV(  0x0421, 0x04fa, 0x0601, 0x0601,
 		US_SC_DEVICE, US_PR_DEVICE, NULL,
 		US_FL_FIX_CAPACITY ),
 
+/* Patch for Nokia 5310 capacity */
+UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0591,
+	"Nokia",
+	"5310",
+	US_SC_DEVICE, US_PR_DEVICE, NULL,
+	US_FL_FIX_CAPACITY ),
+
 /* Reported by Olaf Hering <olh@suse.de> from novell bug #105878 */
 UNUSUAL_DEV(  0x0424, 0x0fdc, 0x0210, 0x0210,
 		"SMSC",