Bug 12099 - Nokia 5310 storage-mode
Summary: Nokia 5310 storage-mode
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks: Regressions-2.6.26
  Show dependency tree
 
Reported: 2008-11-25 01:07 UTC by Robson Roberto Souza Peixoto
Modified: 2008-12-21 03:18 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.27
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description Robson Roberto Souza Peixoto 2008-11-25 01:07:42 UTC
Latest working kernel version: 2.6.26
Earliest failing kernel version: 2.6.27
Distribution: ArchLinux
Hardware Environment: USB(ohci,ehci)
Software Environment: gcc 4.3.2, glibc 2.8
Problem Description: 

When I plug in my Nokia 5310 show a msg in cel "Transferring data" and in computer nothing happend.
dmesg said:
[49112.206059] usb 3-2: new full speed USB device using uhci_hcd and address 6
[49112.349137] usb 3-2: default language 0x0409
[49112.364540] usb 3-2: uevent
[49112.385945] usb 3-2: usb_probe_device
[49112.386280] usb 3-2: configuration #1 chosen from 1 choice
[49112.389175] usb 3-2: adding 3-2:1.0 (config #1, interface 0)
[49112.389395] usb 3-2:1.0: uevent
[49112.389510] libusual 3-2:1.0: usb_probe_interface
[49112.389633] libusual 3-2:1.0: usb_probe_interface - got id
[49112.389734] usb-storage 3-2:1.0: usb_probe_interface
[49112.389825] usb-storage 3-2:1.0: usb_probe_interface - got id
[49112.440873] scsi5 : SCSI emulation for USB Mass Storage devices
[49112.449462] drivers/usb/core/inode.c: creating file '006'
[49112.449966] usb 3-2: New USB device found, idVendor=0421, idProduct=006a
[49112.450124] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[49112.450229] usb 3-2: Product: Nokia 5310 XpressMusic
[49112.450332] usb 3-2: Manufacturer: Nokia
[49112.450431] usb 3-2: SerialNumber: 358990016328676
[49112.450532] hub 3-0:1.0: state 7 ports 2 chg 0000 evt 0004
[49112.450636] usb-storage: device found at 6
[49112.450721] usb-storage: waiting for device to settle before scanning
[49114.000132] hub 2-0:1.0: hub_suspend
[49114.000353] usb usb2: bus auto-suspend
[49114.000443] ehci_hcd 0000:00:1d.7: suspend root hub
[49117.454373] scsi 5:0:0:0: Direct-Access     Nokia    Nokia 5310 Xpres 0000 PQ: 0 ANSI: 4
[49117.468153] sd 5:0:0:0: [sdb] 7741441 512-byte hardware sectors (3964 MB)
[49117.471155] sd 5:0:0:0: [sdb] Write Protect is off
[49117.471387] sd 5:0:0:0: [sdb] Mode Sense: 04 00 00 00
[49117.471476] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[49117.484198] sd 5:0:0:0: [sdb] 7741441 512-byte hardware sectors (3964 MB)
[49117.491222] sd 5:0:0:0: [sdb] Write Protect is off
[49117.491230] sd 5:0:0:0: [sdb] Mode Sense: 04 00 00 00
[49117.491233] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[49117.491237]  sdb: sdb1
[49117.502834] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[49117.502930] sd 5:0:0:0: Attached scsi generic sg2 type 0
[49117.503218] usb-storage: device scan complete
[49117.785148] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
[49117.785158] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
[49117.794501] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
[49117.794511] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
[49117.803901] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
[49117.803910] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
[49117.810163] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
[49117.810172] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
[49117.819157] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
[49117.819166] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
[49117.827259] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
[49117.827269] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
[49117.834394] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
........


Steps to reproduce:
always
Comment 1 Anonymous Emailer 2008-11-25 06:00:08 UTC
Reply-To: akpm@linux-foundation.org


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Tue, 25 Nov 2008 01:07:43 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=12099
> 
>            Summary: Nokia 5310 storage-mode
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.27
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: USB
>         AssignedTo: greg@kroah.com
>         ReportedBy: robsonpeixoto@gmail.com
> 
> 
> Latest working kernel version: 2.6.26
> Earliest failing kernel version: 2.6.27

A regression.

> Distribution: ArchLinux
> Hardware Environment: USB(ohci,ehci)
> Software Environment: gcc 4.3.2, glibc 2.8
> Problem Description: 
> 
> When I plug in my Nokia 5310 show a msg in cel "Transferring data" and in
> computer nothing happend.
> dmesg said:
> [49112.206059] usb 3-2: new full speed USB device using uhci_hcd and address
> 6
> [49112.349137] usb 3-2: default language 0x0409
> [49112.364540] usb 3-2: uevent
> [49112.385945] usb 3-2: usb_probe_device
> [49112.386280] usb 3-2: configuration #1 chosen from 1 choice
> [49112.389175] usb 3-2: adding 3-2:1.0 (config #1, interface 0)
> [49112.389395] usb 3-2:1.0: uevent
> [49112.389510] libusual 3-2:1.0: usb_probe_interface
> [49112.389633] libusual 3-2:1.0: usb_probe_interface - got id
> [49112.389734] usb-storage 3-2:1.0: usb_probe_interface
> [49112.389825] usb-storage 3-2:1.0: usb_probe_interface - got id
> [49112.440873] scsi5 : SCSI emulation for USB Mass Storage devices
> [49112.449462] drivers/usb/core/inode.c: creating file '006'
> [49112.449966] usb 3-2: New USB device found, idVendor=0421, idProduct=006a
> [49112.450124] usb 3-2: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [49112.450229] usb 3-2: Product: Nokia 5310 XpressMusic
> [49112.450332] usb 3-2: Manufacturer: Nokia
> [49112.450431] usb 3-2: SerialNumber: 358990016328676
> [49112.450532] hub 3-0:1.0: state 7 ports 2 chg 0000 evt 0004
> [49112.450636] usb-storage: device found at 6
> [49112.450721] usb-storage: waiting for device to settle before scanning
> [49114.000132] hub 2-0:1.0: hub_suspend
> [49114.000353] usb usb2: bus auto-suspend
> [49114.000443] ehci_hcd 0000:00:1d.7: suspend root hub
> [49117.454373] scsi 5:0:0:0: Direct-Access     Nokia    Nokia 5310 Xpres 0000
> PQ: 0 ANSI: 4
> [49117.468153] sd 5:0:0:0: [sdb] 7741441 512-byte hardware sectors (3964 MB)
> [49117.471155] sd 5:0:0:0: [sdb] Write Protect is off
> [49117.471387] sd 5:0:0:0: [sdb] Mode Sense: 04 00 00 00
> [49117.471476] sd 5:0:0:0: [sdb] Assuming drive cache: write through
> [49117.484198] sd 5:0:0:0: [sdb] 7741441 512-byte hardware sectors (3964 MB)
> [49117.491222] sd 5:0:0:0: [sdb] Write Protect is off
> [49117.491230] sd 5:0:0:0: [sdb] Mode Sense: 04 00 00 00
> [49117.491233] sd 5:0:0:0: [sdb] Assuming drive cache: write through
> [49117.491237]  sdb: sdb1
> [49117.502834] sd 5:0:0:0: [sdb] Attached SCSI removable disk
> [49117.502930] sd 5:0:0:0: Attached scsi generic sg2 type 0
> [49117.503218] usb-storage: device scan complete
> [49117.785148] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> [49117.785158] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
> [49117.794501] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> [49117.794511] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
> [49117.803901] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> [49117.803910] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
> [49117.810163] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> [49117.810172] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
> [49117.819157] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> [49117.819166] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
> [49117.827259] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> [49117.827269] sd 5:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
> [49117.834394] sd 5:0:0:0: [sdb] Sense Key : 0x0 [current] 
> ........
> 
> 
> Steps to reproduce:
> always
> 
Comment 2 Alan Stern 2008-11-25 07:07:19 UTC
On Tue, 25 Nov 2008, Andrew Morton wrote:

> > http://bugzilla.kernel.org/show_bug.cgi?id=12099
> > 
> >            Summary: Nokia 5310 storage-mode
> >            Product: Drivers
> >            Version: 2.5
> >      KernelVersion: 2.6.27

> > Latest working kernel version: 2.6.26
> > Earliest failing kernel version: 2.6.27
> 
> A regression.

> > When I plug in my Nokia 5310 show a msg in cel "Transferring data" and in
> > computer nothing happend.
> > dmesg said:
> > [49112.449966] usb 3-2: New USB device found, idVendor=0421, idProduct=006a
> > [49112.450124] usb 3-2: New USB device strings: Mfr=1, Product=2,
> > SerialNumber=3
> > [49112.450229] usb 3-2: Product: Nokia 5310 XpressMusic

This problem should already be fixed in 2.6.27.  Perhaps your model is 
newer than the range in the blacklist file.  What does "lsusb -v" say 
about your Nokia 5310?

Alan Stern
Comment 3 Robson Roberto Souza Peixoto 2008-11-25 13:59:49 UTC
On Tue, Nov 25, 2008 at 1:07 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Tue, 25 Nov 2008, Andrew Morton wrote:
>
>> > http://bugzilla.kernel.org/show_bug.cgi?id=12099
>> >
>> >            Summary: Nokia 5310 storage-mode
>> >            Product: Drivers
>> >            Version: 2.5
>> >      KernelVersion: 2.6.27
>
>> > Latest working kernel version: 2.6.26
>> > Earliest failing kernel version: 2.6.27
>>
>> A regression.
>
>> > When I plug in my Nokia 5310 show a msg in cel "Transferring data" and in
>> > computer nothing happend.
>> > dmesg said:
>> > [49112.449966] usb 3-2: New USB device found, idVendor=0421,
>> idProduct=006a
>> > [49112.450124] usb 3-2: New USB device strings: Mfr=1, Product=2,
>> > SerialNumber=3
>> > [49112.450229] usb 3-2: Product: Nokia 5310 XpressMusic
>
> This problem should already be fixed in 2.6.27.  Perhaps your model is
> newer than the range in the blacklist file.  What does "lsusb -v" say
> about your Nokia 5310?
>
> Alan Stern
>
>

# lsusb
Bus 005 Device 002: ID 15d9:0a37
Bus 005 Device 001: ID 1d6b:0001
Bus 004 Device 004: ID 0421:006a Nokia Mobile Phones
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 002: ID 413c:a005 Dell Computer Corp.
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 001: ID 1d6b:0001

# lsusb -v  -s 004:004

Bus 004 Device 004: ID 0421:006a Nokia Mobile Phones
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0421 Nokia Mobile Phones
  idProduct          0x006a
  bcdDevice            7.01
  iManufacturer           1 Nokia
  iProduct                2 Nokia 5310 XpressMusic
  iSerial                 3 358990016328676
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0001
  Self Powered
Comment 4 Alan Stern 2008-11-26 08:06:44 UTC
On Tue, 25 Nov 2008, Robson Roberto Souza Peixoto wrote:

> > This problem should already be fixed in 2.6.27.  Perhaps your model is
> > newer than the range in the blacklist file.  What does "lsusb -v" say
> > about your Nokia 5310?

> # lsusb -v  -s 004:004
> 
> Bus 004 Device 004: ID 0421:006a Nokia Mobile Phones
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               2.00
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0        64
>   idVendor           0x0421 Nokia Mobile Phones
>   idProduct          0x006a
>   bcdDevice            7.01

Yes, that's newer than the current entry, which goes up only to the
5.91 firmware.  The patch below should fix your problem.  I wish Nokia 
would fix _their_ problem...

Alan Stern


Index: 2.6.27.4/drivers/usb/storage/unusual_devs.h
===================================================================
--- 2.6.27.4.orig/drivers/usb/storage/unusual_devs.h
+++ 2.6.27.4/drivers/usb/storage/unusual_devs.h
@@ -247,7 +247,7 @@ UNUSUAL_DEV(  0x0421, 0x04fa, 0x0601, 0x
 		US_FL_FIX_CAPACITY ),
 
 /* Patch for Nokia 5310 capacity */
-UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0591,
+UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0701,
 	"Nokia",
 	"5310",
 	US_SC_DEVICE, US_PR_DEVICE, NULL,
Comment 5 Robson Roberto Souza Peixoto 2008-11-26 12:37:23 UTC
On Wed, Nov 26, 2008 at 2:06 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Tue, 25 Nov 2008, Robson Roberto Souza Peixoto wrote:
>
>> > This problem should already be fixed in 2.6.27.  Perhaps your model is
>> > newer than the range in the blacklist file.  What does "lsusb -v" say
>> > about your Nokia 5310?
>
>> # lsusb -v  -s 004:004
>>
>> Bus 004 Device 004: ID 0421:006a Nokia Mobile Phones
>> Device Descriptor:
>>   bLength                18
>>   bDescriptorType         1
>>   bcdUSB               2.00
>>   bDeviceClass            0 (Defined at Interface level)
>>   bDeviceSubClass         0
>>   bDeviceProtocol         0
>>   bMaxPacketSize0        64
>>   idVendor           0x0421 Nokia Mobile Phones
>>   idProduct          0x006a
>>   bcdDevice            7.01
>
> Yes, that's newer than the current entry, which goes up only to the
> 5.91 firmware.  The patch below should fix your problem.  I wish Nokia
> would fix _their_ problem...
>
> Alan Stern
>
>
> Index: 2.6.27.4/drivers/usb/storage/unusual_devs.h
> ===================================================================
> --- 2.6.27.4.orig/drivers/usb/storage/unusual_devs.h
> +++ 2.6.27.4/drivers/usb/storage/unusual_devs.h
> @@ -247,7 +247,7 @@ UNUSUAL_DEV(  0x0421, 0x04fa, 0x0601, 0x
>                US_FL_FIX_CAPACITY ),
>
>  /* Patch for Nokia 5310 capacity */
> -UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0591,
> +UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0701,
>        "Nokia",
>        "5310",
>        US_SC_DEVICE, US_PR_DEVICE, NULL,
>
>

Thanks! Its work =)
Comment 6 Robson Roberto Souza Peixoto 2008-11-26 12:38:00 UTC
On Wed, Nov 26, 2008 at 2:06 PM,  <bugme-daemon@bugzilla.kernel.org> wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=12099
>
>
>
>
>
> ------- Comment #4 from stern@rowland.harvard.edu  2008-11-26 08:06 -------
> On Tue, 25 Nov 2008, Robson Roberto Souza Peixoto wrote:
>
>> > This problem should already be fixed in 2.6.27.  Perhaps your model is
>> > newer than the range in the blacklist file.  What does "lsusb -v" say
>> > about your Nokia 5310?
>
>> # lsusb -v  -s 004:004
>>
>> Bus 004 Device 004: ID 0421:006a Nokia Mobile Phones
>> Device Descriptor:
>>   bLength                18
>>   bDescriptorType         1
>>   bcdUSB               2.00
>>   bDeviceClass            0 (Defined at Interface level)
>>   bDeviceSubClass         0
>>   bDeviceProtocol         0
>>   bMaxPacketSize0        64
>>   idVendor           0x0421 Nokia Mobile Phones
>>   idProduct          0x006a
>>   bcdDevice            7.01
>
> Yes, that's newer than the current entry, which goes up only to the
> 5.91 firmware.  The patch below should fix your problem.  I wish Nokia
> would fix _their_ problem...
>
> Alan Stern
>
>
> Index: 2.6.27.4/drivers/usb/storage/unusual_devs.h
> ===================================================================
> --- 2.6.27.4.orig/drivers/usb/storage/unusual_devs.h
> +++ 2.6.27.4/drivers/usb/storage/unusual_devs.h
> @@ -247,7 +247,7 @@ UNUSUAL_DEV(  0x0421, 0x04fa, 0x0601, 0x
>                US_FL_FIX_CAPACITY ),
>
>  /* Patch for Nokia 5310 capacity */
> -UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0591,
> +UNUSUAL_DEV(  0x0421, 0x006a, 0x0000, 0x0701,
>        "Nokia",
>        "5310",
>        US_SC_DEVICE, US_PR_DEVICE, NULL,
>
>
> --
> Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>

Thanks! It's work =)
Comment 7 Rafael J. Wysocki 2008-12-03 14:37:29 UTC
Handled-By : Alan Stern <stern@rowland.harvard.edu>
Patch : http://marc.info/?l=linux-kernel&m=122762731503933&w=4
Notify-Also : SCSI development list <linux-scsi@vger.kernel.org>
Comment 8 Alan Stern 2008-12-20 19:07:45 UTC
Fixed by commit a4b188095912eee83d065f000dfe06f25919750b.  This bug report can be closed.

Note You need to log in before you can comment on or make changes to this bug.