Openmoko Bug #2278: kernel: g_file_storage fails with usb 1-1: failed to restore interface 0 altsetting 0 (error=-110)

Openmoko Public Trac bugs at docs.openmoko.org
Thu Apr 30 15:23:34 CEST 2009


#2278: kernel: g_file_storage fails with usb 1-1: failed to restore interface 0
altsetting 0 (error=-110)
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel  
     Type:  defect           |         Status:  new              
 Priority:  normal           |      Milestone:                   
Component:  System Software  |        Version:                   
 Severity:  normal           |       Keywords:  kernel usb gadget
 Haspatch:  0                |      Blockedby:                   
Estimated:                   |    Patchreview:                   
 Blocking:                   |   Reproducible:  always           
-----------------------------+----------------------------------------------

Comment(by lindi):

 I added
 #define DEBUG
 #define VERBOSE_DEBUG
 #define DUMP_MSGS
 to file_storage.c and now the device seems to magically work so I guess
 there's some odd timing issue. Laptop prints

 {{{
 5135.104081] usb 1-1: new full speed USB device using uhci_hcd and address
 36
 5138.422262] usb 1-1: configuration #1 chosen from 1 choice
 5143.732641] scsi33 : SCSI emulation for USB Mass Storage devices
 5143.733119] usb-storage: device found at 36
 5143.733130] usb-storage: waiting for device to settle before scanning
 5144.039013] usb 1-1: New USB device found, idVendor=0525, idProduct=a4a5
 5144.039045] usb 1-1: New USB device strings: Mfr=1, Product=2,
 SerialNumber=3
 5144.039059] usb 1-1: Product: File-backed3 Storage Gadget
 5144.039072] usb 1-1: Manufacturer: Linux 2.6.29-GTA02_lindi-andy-
 tracking-mokodev with s3c2410_udc
 5144.039086] usb 1-1: SerialNumber: 3230204E6F76
 5148.863424] usb-storage: device scan complete
 5149.631309] scsi 33:0:0:0: Direct-Access     Linux    File-Stor Gadget
 0312 PQ: 0 ANSI: 2
 5152.139797] sd 33:0:0:0: [sda] 8192 512-byte hardware sectors (4 MB)
 5152.858697] sd 33:0:0:0: [sda] Write Protect is off
 5152.858728] sd 33:0:0:0: [sda] Mode Sense: 0f 00 00 00
 5152.858741] sd 33:0:0:0: [sda] Assuming drive cache: write through
 5153.997484] sd 33:0:0:0: [sda] 8192 512-byte hardware sectors (4 MB)
 5154.715390] sd 33:0:0:0: [sda] Write Protect is off
 5154.715421] sd 33:0:0:0: [sda] Mode Sense: 0f 00 00 00
 5154.715434] sd 33:0:0:0: [sda] Assuming drive cache: write through
 5154.715465]  sda: unknown partition table
 5156.613915] sd 33:0:0:0: [sda] Attached SCSI disk
 }}}

 and I can read data from the device too. The debug output from freerunner
 is attached since its quite long.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2278#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list