USB: Nokia 502 is an unusual device
authorMikhail Zolotaryov <lebon@lebon.org.ua>
Fri, 27 Dec 2013 23:56:35 +0000 (01:56 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:40 +0000 (00:58 +0100)
commit0149978efa3d55629acd652ed35d3dd7f52e256c
treee4ed9326e72399b51cafaebcf0bf6ea1b193de62
parentea72634bf522f48d2bf3e14dd998456d54f9371b
USB: Nokia 502 is an unusual device

commit 0e16114f2db4838251fb64f3b550996ad3585890 upstream.

The USB storage operation of Nokia Asha 502 Dual SIM smartphone running Asha
Platform 1.1.1 is unreliable in respect of data consistency (i.e. transfered
files are corrupted). A similar issue is described here:
http://discussions.nokia.com/t5/Asha-and-other-Nokia-Series-30/Nokia-301-USB-transfers-and-corrupted-files/td-p/1974170

The workaround is (MAX_SECTORS_64):
   rmmod usb_storage && modprobe usb_storage quirks=0421:06aa:m

The patch adds the tested device to the unusual list permanently.

Signed-off-by: Mikhail Zolotaryov <lebon@lebon.org.ua>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/storage/unusual_devs.h