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.

DM8148平台USB插拔识别异常



我们在DM8148和DM8168平台上均发现一个问题,就是刚插入USB后过2-3s拔掉,会概率性的出现要经过20秒左右USB才会真正确认被拔出,这个期间插入USB也没有反应,该问题确认和U盘本身没有关系。log如下面所示。经过我们的调试,在tranport.c文件中的函数usb_stor_msg_common中有wait_for_completion_interruptible_timeout 进行等待,没能返回。在这个地方人为修改超时后,它又卡在下一个有wait的地方。请问有没有补丁可以修复这个问题?
 
 
插入USB:
usb 2-1: new high speed USB device using musb-hdrc and address 27
usb 2-1: New USB device found, idVendor=3538, idProduct=0901
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: SerialNumber: 01AC0000000342
scsi25 : usb-storage 2-1:1.0
scsi 25:0:0:0: Direct-Access     pqi      IntelligentStick 0.00 PQ: 0 ANSI: 2
sd 25:0:0:0: Attached scsi generic sg0 type 0
sd 25:0:0:0: [sda] 15771720 512-byte logical blocks: (8.07 GB/7.52 GiB)
sd 25:0:0:0: [sda] Write Protect is off
sd 25:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 25:0:0:0: [sda] Assuming drive cache: write through
sd 25:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda3
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
sd 25:0:0:0: [sda] Assuming drive cache: write through
sd 25:0:0:0: [sda] Attached SCSI removable disk
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda.
EXT3-fs (sda): error: can't find ext3 filesystem on dev sda.
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda1.
EXT3-fs (sda1): error: can't find ext3 filesystem on dev sda1.
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
usb 2-1: USB disconnect, address 27
。。。开始等待大概20s左右
#
#
。。。20s左右以后
# musb-hdrc musb-hdrc.1: Data toggle same as previous (=1) on ep2
sd 25:0:0:0: Device offlined - not ready after error recovery
sd 25:0:0:0: [sda] Unhandled error code
sd 25:0:0:0: [sda]  Result: hostbyte=0x05 driverbyte=0x00
sd 25:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 ca b9 7b 00 00 01 00
end_request: I/O error, dev sda, sector 13285755
FAT: unable to read boot sector