This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB Mass Storage Devices Getting Disconnected Using proxy gadget (through OTG port in BeagleBoard-xM RevC)

I am using BB-xM RevC board, kernel 2.6.34 in my project for exporting USB devices (connected to BB) to my Host PC (kernel 2.6.32, Ubuntu 10.04 Lucid).

The code I have used is very similar to GSoc 2010 for USB Sniffer.

I dont have any issue in enumeration of devices, the USB Mass Storage devices were exported and mounted in my PC. But they get disconnected (unmounted and dont see device in lsusb) after 2 minutes.

For isochronous devices, I dont see this issue.

Any idea ?

Dmesg shows :

89101.701005] scsi 11:0:0:0: Direct-Access     hp       v165w            1100 PQ: 0 ANSI: 4
[89101.701048] scsi: killing requests for dead queue
[89101.701091] scsi: killing requests for dead queue
[89101.701132] scsi: killing requests for dead queue
[89101.701172] scsi: killing requests for dead queue
[89101.701212] scsi: killing requests for dead queue
[89101.701252] scsi: killing requests for dead queue
[89101.701291] scsi: killing requests for dead queue
[89101.701331] scsi: killing requests for dead queue
[89101.705875] sd 11:0:0:0: Attached scsi generic sg2 type 0
[89101.706985] sd 11:0:0:0: [sdc] 7907328 512-byte logical blocks: (4.04 GB/3.77 GiB)
[89101.707725] sd 11:0:0:0: [sdc] Write Protect is off
[89101.707731] sd 11:0:0:0: [sdc] Mode Sense: 43 00 00 00
[89101.707734] sd 11:0:0:0: [sdc] Assuming drive cache: write through
[89101.717231] sd 11:0:0:0: [sdc] Assuming drive cache: write through
[89101.717238]  sdc: sdc1
[89101.722293] sd 11:0:0:0: [sdc] Assuming drive cache: write through
[89101.722302] sd 11:0:0:0: [sdc] Attached SCSI removable disk
[89137.112034] usb 1-6: reset high speed USB device using ehci_hcd and address 46
[89152.224030] usb 1-6: device descriptor read/64, error -110
[89167.440030] usb 1-6: device descriptor read/64, error -110
[89167.656030] usb 1-6: reset high speed USB device using ehci_hcd and address 46
[89182.768029] usb 1-6: device descriptor read/64, error -110
[89197.984028] usb 1-6: device descriptor read/64, error -110
[89198.200034] usb 1-6: reset high speed USB device using ehci_hcd and address 46
[89203.220082] usb 1-6: device descriptor read/8, error -110
[89208.340192] usb 1-6: device descriptor read/8, error -110
[89208.556032] usb 1-6: reset high speed USB device using ehci_hcd and address 46
[89213.576160] usb 1-6: device descriptor read/8, error -110
[89218.696143] usb 1-6: device descriptor read/8, error -110
[89218.800052] usb 1-6: USB disconnect, address 46
[89218.800386] sd 11:0:0:0: Device offlined - not ready after error recovery
[89218.800529] sd 11:0:0:0: [sdc] Unhandled error code
[89218.800533] sd 11:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[89218.800538] sd 11:0:0:0: [sdc] CDB: Write(10): 2a 00 00 00 00 b2 00 00 01 00
[89218.800551] end_request: I/O error, dev sdc, sector 178
[89218.800558] Buffer I/O error on device sdc1, logical block 116
[89218.800561] lost page write due to I/O error on sdc1
[89218.800606] sd 11:0:0:0: [sdc] Unhandled error code
[89218.800610] sd 11:0:0:0: [sdc] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[89218.800614] sd 11:0:0:0: [sdc] CDB: Write(10): 2a 00 00 00 1e cb 00 00 01 00
[89218.800624] end_request: I/O error, dev sdc, sector 7883
[89218.800629] Buffer I/O error on device sdc1, logical block 7821
[89218.800631] lost page write due to I/O error on sdc1
[89233.815966] scsi: killing requests for dead queue
[89233.932380] usb 1-6: new high speed USB device using ehci_hcd and address 47
[89236.318711] FAT: Directory bread(block 15448) failed
[89236.318726] FAT: Directory bread(block 15449) failed
[89236.318739] FAT: Directory bread(block 15450) failed
[89236.318750] FAT: Directory bread(block 15451) failed
[89236.318762] FAT: Directory bread(block 15452) failed
[89236.318774] FAT: Directory bread(block 15453) failed
[89236.318786] FAT: Directory bread(block 15454) failed
[89236.318797] FAT: Directory bread(block 15455) failed
[89240.903640] scsi: killing requests for dead queue
[89249.044030] usb 1-6: device descriptor read/64, error -110
[89251.624042] hub 1-0:1.0: unable to enumerate USB device on port 6
[89254.368030] usb 4-2: new full speed USB device using uhci_hcd and address 40
[89255.440028] usb 4-2: device descriptor read/64, error -71
[89255.664030] usb 4-2: device descriptor read/64, error -71
[89255.880029] usb 4-2: new full speed USB device using uhci_hcd and address 41
[89256.000040] usb 4-2: device descriptor read/64, error -71
[89256.224039] usb 4-2: device descriptor read/64, error -71
[89256.440035] usb 4-2: new full speed USB device using uhci_hcd and address 42
[89256.848022] usb 4-2: device not accepting address 42, error -71
[89256.960029] usb 4-2: new low speed USB device using uhci_hcd and address 43
[89257.368022] usb 4-2: device not accepting address 43, error -71
[89257.368043] hub 4-0:1.0: unable to enumerate USB device on port 2
[89257.872046] usb 4-2: new full speed USB device using uhci_hcd and address 44
[89263.240057] hub 4-0:1.0: unable to enumerate USB device on port 2
[89397.216029] usb 1-6: new high speed USB device using ehci_hcd and address 49
[89397.359131] usb 1-6: configuration #1 chosen from 1 choice
[89397.529214] scsi12 : SCSI emulation for USB Mass Storage devices
[89397.535110] usb-storage: device found at 49
[89397.535114] usb-storage: waiting for device to settle before scanning
[89402.532391] usb-storage: device scan complete
[89402.533004] scsi 12:0:0:0: Direct-Access     hp       v165w            1100 PQ: 0 ANSI: 4
[89402.533048] scsi: killing requests for dead queue
[89402.533093] scsi: killing requests for dead queue
[89402.533134] scsi: killing requests for dead queue
[89402.533176] scsi: killing requests for dead queue
[89402.533216] scsi: killing requests for dead queue
[89402.533256] scsi: killing requests for dead queue
[89402.533296] scsi: killing requests for dead queue
[89402.533336] scsi: killing requests for dead queue
[89402.537645] sd 12:0:0:0: Attached scsi generic sg2 type 0
[89402.546236] sd 12:0:0:0: [sdb] 7907328 512-byte logical blocks: (4.04 GB/3.77 GiB)
[89402.547369] sd 12:0:0:0: [sdb] Write Protect is off
[89402.547375] sd 12:0:0:0: [sdb] Mode Sense: 43 00 00 00
[89402.547378] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[89402.552284] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[89402.552293]  sdb: sdb1
[89402.559728] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[89402.559736] sd 12:0:0:0: [sdb] Attached SCSI removable disk
[89458.112033] usb 1-6: reset high speed USB device using ehci_hcd and address 49
[89473.224029] usb 1-6: device descriptor read/64, error -110
[89488.440034] usb 1-6: device descriptor read/64, error -110
[89488.656036] usb 1-6: reset high speed USB device using ehci_hcd and address 49
[89503.768033] usb 1-6: device descriptor read/64, error -110
[89518.984114] usb 1-6: device descriptor read/64, error -110
[89519.200038] usb 1-6: reset high speed USB device using ehci_hcd and address 49
[89524.220167] usb 1-6: device descriptor read/8, error -110
[89529.340149] usb 1-6: device descriptor read/8, error -110
[89529.556033] usb 1-6: reset high speed USB device using ehci_hcd and address 49
[89534.576118] usb 1-6: device descriptor read/8, error -110
[89539.696100] usb 1-6: device descriptor read/8, error -110
[89539.800054] usb 1-6: USB disconnect, address 49
[89539.800380] sd 12:0:0:0: Device offlined - not ready after error recovery
[89539.800487] sd 12:0:0:0: [sdb] Unhandled error code
[89539.800490] sd 12:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[89539.800496] sd 12:0:0:0: [sdb] CDB: Write(10): 2a 00 00 00 00 3f 00 00 01 00
[89539.800508] end_request: I/O error, dev sdb, sector 63
[89539.800515] Buffer I/O error on device sdb1, logical block 1
[89539.800518] lost page write due to I/O error on sdb1
[89539.800559] sd 12:0:0:0: [sdb] Unhandled error code
[89539.800562] sd 12:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[89539.800566] sd 12:0:0:0: [sdb] CDB: Write(10): 2a 00 00 00 00 b2 00 00 01 00
[89539.800576] end_request: I/O error, dev sdb, sector 178
[89539.800580] Buffer I/O error on device sdb1, logical block 116
[89539.800583] lost page write due to I/O error on sdb1
[89539.813301] scsi: killing requests for dead queue
[89539.928064] usb 1-6: new high speed USB device using ehci_hcd and address 50
[89555.040032] usb 1-6: device descriptor read/64, error -110
[89570.256028] usb 1-6: device descriptor read/64, error -110
[89570.472032] usb 1-6: new high speed USB device using ehci_hcd and address 51
[89585.584032] usb 1-6: device descriptor read/64, error -110
[89600.800028] usb 1-6: device descriptor read/64, error -110
[89601.016032] usb 1-6: new high speed USB device using ehci_hcd and address 52
[89606.036135] usb 1-6: device descriptor read/8, error -110
[89611.156118] usb 1-6: device descriptor read/8, error -110
[89611.372033] usb 1-6: new high speed USB device using ehci_hcd and address 53
[89616.392090] usb 1-6: device descriptor read/8, error -110
[89621.512068] usb 1-6: device descriptor read/8, error -110
[89621.616039] hub 1-0:1.0: unable to enumerate USB device on port 6
[89622.008026] usb 4-2: new full speed USB device using uhci_hcd and address 45
[89637.176029] usb 4-2: device descriptor read/64, error -110
[89652.392028] usb 4-2: device descriptor read/64, error -110
[89652.608045] usb 4-2: new full speed USB device using uhci_hcd and address 46
[89667.720032] usb 4-2: device descriptor read/64, error -110
[89682.936028] usb 4-2: device descriptor read/64, error -110
[89683.152030] usb 4-2: new full speed USB device using uhci_hcd and address 47
[89688.169888] usb 4-2: device descriptor read/8, error -110
[89693.289374] usb 4-2: device descriptor read/8, error -110
[89693.504033] usb 4-2: new full speed USB device using uhci_hcd and address 48
[89698.525840] usb 4-2: device descriptor read/8, error -110
[89703.645329] usb 4-2: device descriptor read/8, error -110
[89703.748037] hub 4-0:1.0: unable to enumerate USB device on port 2
[90198.256094] usb 4-2: new full speed USB device using uhci_hcd and address 49
[90203.524063] hub 4-0:1.0: unable to enumerate USB device on port 2
[90248.288039] usb 1-6: new high speed USB device using ehci_hcd and address 54
[90248.431578] usb 1-6: configuration #1 chosen from 1 choice
[90248.598946] scsi13 : SCSI emulation for USB Mass Storage devices
[90248.604538] usb-storage: device found at 54
[90248.604542] usb-storage: waiting for device to settle before scanning
[90253.604476] usb-storage: device scan complete
[90253.605093] scsi 13:0:0:0: Direct-Access     hp       v165w            1100 PQ: 0 ANSI: 4
[90253.605139] scsi: killing requests for dead queue
[90253.605182] scsi: killing requests for dead queue
[90253.605224] scsi: killing requests for dead queue
[90253.605264] scsi: killing requests for dead queue
[90253.605303] scsi: killing requests for dead queue
[90253.605342] scsi: killing requests for dead queue
[90253.605382] scsi: killing requests for dead queue
[90253.605421] scsi: killing requests for dead queue
[90253.607800] sd 13:0:0:0: Attached scsi generic sg2 type 0
[90253.609698] sd 13:0:0:0: [sdb] 7907328 512-byte logical blocks: (4.04 GB/3.77 GiB)
[90253.610445] sd 13:0:0:0: [sdb] Write Protect is off
[90253.610449] sd 13:0:0:0: [sdb] Mode Sense: 43 00 00 00
[90253.610452] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[90253.620205] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[90253.620213]  sdb: sdb1
[90253.623815] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[90253.623823] sd 13:0:0:0: [sdb] Attached SCSI removable disk
[90317.112034] usb 1-6: reset high speed USB device using ehci_hcd and address 54
[90332.224035] usb 1-6: device descriptor read/64, error -110
[90347.440036] usb 1-6: device descriptor read/64, error -110
[90347.656037] usb 1-6: reset high speed USB device using ehci_hcd and address 54
[90362.768032] usb 1-6: device descriptor read/64, error -110
[90377.984037] usb 1-6: device descriptor read/64, error -110
[90378.200040] usb 1-6: reset high speed USB device using ehci_hcd and address 54
[90383.220102] usb 1-6: device descriptor read/8, error -110
[90388.340207] usb 1-6: device descriptor read/8, error -110
[90388.556036] usb 1-6: reset high speed USB device using ehci_hcd and address 54
[90393.576177] usb 1-6: device descriptor read/8, error -110
[90398.696160] usb 1-6: device descriptor read/8, error -110
[90398.800126] usb 1-6: USB disconnect, address 54
[90398.800460] sd 13:0:0:0: Device offlined - not ready after error recovery
[90398.800601] sd 13:0:0:0: [sdb] Unhandled error code
[90398.800605] sd 13:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[90398.800610] sd 13:0:0:0: [sdb] CDB: Write(10): 2a 00 00 00 00 3f 00 00 01 00
[90398.800622] end_request: I/O error, dev sdb, sector 63
[90398.800629] Buffer I/O error on device sdb1, logical block 1
[90398.800632] lost page write due to I/O error on sdb1
[90398.873575] scsi: killing requests for dead queue
[90398.928049] usb 1-6: new high speed USB device using ehci_hcd and address 55
[90414.040025] usb 1-6: device descriptor read/64, error -110
[90429.256030] usb 1-6: device descriptor read/64, error -110
[90429.472035] usb 1-6: new high speed USB device using ehci_hcd and address 56
[90444.584032] usb 1-6: device descriptor read/64, error -110
[90459.800036] usb 1-6: device descriptor read/64, error -110
[90460.016035] usb 1-6: new high speed USB device using ehci_hcd and address 57
[90465.036155] usb 1-6: device descriptor read/8, error -110
[90470.156135] usb 1-6: device descriptor read/8, error -110
[90470.372038] usb 1-6: new high speed USB device using ehci_hcd and address 58
[90475.392107] usb 1-6: device descriptor read/8, error -110
[90480.512091] usb 1-6: device descriptor read/8, error -110
[90480.616040] hub 1-0:1.0: unable to enumerate USB device on port 6
[90481.008030] usb 4-2: new full speed USB device using uhci_hcd and address 50
[90496.120052] usb 4-2: device descriptor read/64, error -110
[90511.336036] usb 4-2: device descriptor read/64, error -110
[90511.552034] usb 4-2: new full speed USB device using uhci_hcd and address 51
[90526.664032] usb 4-2: device descriptor read/64, error -110
[90541.884032] usb 4-2: device descriptor read/64, error -110
[90542.100035] usb 4-2: new full speed USB device using uhci_hcd and address 52
[90547.121973] usb 4-2: device descriptor read/8, error -110
[90552.241454] usb 4-2: device descriptor read/8, error -110
[90552.456027] usb 4-2: new full speed USB device using uhci_hcd and address 53
[90557.477923] usb 4-2: device descriptor read/8, error -110
[90562.597408] usb 4-2: device descriptor read/8, error -110
[90562.700038] hub 4-0:1.0: unable to enumerate USB device on port 2
[92373.968051] usb 5-1: USB disconnect, address 6