Skip to content

Commit cdef30e

Browse files
lkundrakgregkh
authored andcommitted
usb-storage: Add max sectors quirk for Nokia 208
This fixes data corruption when accessing the internal SD card in mass storage mode. I am actually not too sure why. I didn't figure a straightforward way to reproduce the issue, but i seem to get garbage when issuing a lot (over 50) of large reads (over 120 sectors) are done in a quick succession. That is, time seems to matter here -- larger reads are fine if they are done with some delay between them. But I'm not great at understanding this sort of things, so I'll assume the issue other, smarter, folks were seeing with similar phones is the same problem and I'll just put my quirk next to theirs. The "Software details" screen on the phone is as follows: V 04.06 07-08-13 RM-849 (c) Nokia TL;DR version of the device descriptor: idVendor 0x0421 Nokia Mobile Phones idProduct 0x06c2 bcdDevice 4.06 iManufacturer 1 Nokia iProduct 2 Nokia 208 The patch assumes older firmwares are broken too (I'm unable to test, but no biggie if they aren't I guess), and I have no idea if newer firmware exists. Signed-off-by: Lubomir Rintel <[email protected]> Cc: stable <[email protected]> Acked-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6f660ff commit cdef30e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/usb/storage/unusual_devs.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ UNUSUAL_DEV( 0x0421, 0x06aa, 0x1110, 0x1110,
255255
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
256256
US_FL_MAX_SECTORS_64 ),
257257

258+
/* Added by Lubomir Rintel <[email protected]>, a very fine chap */
259+
UNUSUAL_DEV( 0x0421, 0x06c2, 0x0000, 0x0406,
260+
"Nokia",
261+
"Nokia 208",
262+
USB_SC_DEVICE, USB_PR_DEVICE, NULL,
263+
US_FL_MAX_SECTORS_64 ),
264+
258265
#ifdef NO_SDDR09
259266
UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100,
260267
"Microtech",

0 commit comments

Comments
 (0)