Hi all,
最近遇到一个USB U盘的Bug,我的Kernel是4.4.19的:
按照以下步骤可以100%复现这个bug:
1. modprobe g_mass_storage file=/dev/mmcblk0p1 stall=0 ro=1 removable=1
2. usb连接到Win7上,此时Win7正常枚举U盘
3. 用U盘测试工具读U盘测试
4. 在读测试的过程中,拔出U盘
5. 再次插入U盘,此时Win7不能正常枚举U盘了
下面是一些调试信息:
/* 第一次插入USB,枚举正常 */
[root@Ronds: ~]# [ 1006.035852] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1006.042748] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1006.049572] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1006.167703] @@@ dwc3_gadget_interrupt 2718
[ 1006.180231] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1006.228180] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.236775] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.245251] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1006.249452] @@@ dwc->ep0_expect_in: 1, 1
[ 1006.253437] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1006.261837] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1006.270400] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.274662] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1006.283344] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1006.290164] @@@ dwc3_gadget_interrupt 2718
[ 1006.294326] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1006.337635] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1006.344506] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1006.388691] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1006.395552] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1006.465132] @@@ dwc3_gadget_interrupt 2718
[ 1006.477662] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1006.524583] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.533183] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.541660] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1006.545861] @@@ dwc->ep0_expect_in: 1, 1
[ 1006.549851] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1006.558249] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1006.566811] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.571089] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1006.579773] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1006.586591] @@@ dwc3_gadget_interrupt 2718
[ 1006.590757] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1006.631275] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.639850] @@ dwc3_ep0_set_address 517, 0xd
[ 1006.644151] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Setup Phase'
[ 1006.652712] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.656973] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Status Phase'
[ 1006.678059] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.686654] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.695131] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1006.699331] @@@ dwc->ep0_expect_in: 1, 1
[ 1006.703319] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1006.711717] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1006.720278] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.724540] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1006.733223] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.741804] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.750278] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1006.754477] @@@ dwc->ep0_expect_in: 1, 1
[ 1006.758445] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1006.766837] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1006.775398] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.779662] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1006.788343] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.796920] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.805396] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1006.809595] @@@ dwc->ep0_expect_in: 1, 1
[ 1006.813561] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.822036] @@ dwc3_ep0_interrupt 1127, 0x9
[ 1006.826238] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1006.834631] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1006.843193] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.847452] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1006.856134] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1006.864714] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1006.873189] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1006.877388] @@@ dwc->ep0_expect_in: 1, 1
[ 1006.881355] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1006.889747] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1006.898307] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1006.902568] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1007.100625] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1007.109236] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1007.117711] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1007.121913] @@@ dwc->ep0_expect_in: 1, 1
[ 1007.125920] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1007.134319] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1007.142882] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1007.147150] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1007.155838] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1007.164420] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1007.172894] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1007.177093] @@@ dwc->ep0_expect_in: 1, 1
[ 1007.181063] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1007.189459] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1007.198019] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1007.202270] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1007.210942] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1007.219517] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1007.227991] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1007.232190] @@@ dwc->ep0_expect_in: 1, 1
[ 1007.236160] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1007.244553] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1007.253113] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1007.257348] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1007.266030] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1007.274604] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
[ 1007.282238] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Setup Phase'
[ 1007.290802] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1007.295178] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Status Phase'
[ 1007.320197] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1007.328802] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1007.337280] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1007.341480] @@@ dwc->ep0_expect_in: 1, 1
[ 1007.345490] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1007.353888] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1007.362451] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1007.366712] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1008.535211] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1008.543825] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1008.552301] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1008.556504] @@@ dwc->ep0_expect_in: 1, 1
[ 1008.560514] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1008.568911] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1008.577472] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1008.581746] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[ 1008.590436] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Setup Phase'
[ 1008.599013] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Data Phase'
[ 1008.607487] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1008.611685] @@@ dwc->ep0_expect_in: 1, 1
[ 1008.615671] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0in in state 'Data Phase'
[ 1008.624066] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0out in state 'Data Phase'
[ 1008.632629] @@ dwc3_ep0_interrupt 1127, 0x2
[ 1008.636865] @@ dwc3_ep0_interrupt 1117, Transfer Complete while ep0out in state 'Status Phase'
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
/* 在读测试进行中,突然拔出U盘 */
[root@Ronds: ~]# [ 1022.212074] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.218925] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.264179] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.271028] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.284265] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.291112] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.304255] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.311098] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.324262] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.331099] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.344275] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.351114] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.364301] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.371138] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.384326] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.391161] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.404353] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.411186] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.424362] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.431196] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.444364] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.451197] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.464373] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.471245] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.484415] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.491259] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.504415] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.511254] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.524449] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.531285] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.544456] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.551291] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.564438] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.571273] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.584451] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.591285] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.604464] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.611296] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.624462] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.631297] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.644479] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.651314] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.664506] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.671340] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.684514] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.691347] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.704525] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.711359] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.724585] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.731421] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.744606] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.751442] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.764573] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.771407] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.784589] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.791425] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.804618] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.811453] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.824629] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.831463] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.844656] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.851489] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.864669] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.871503] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.884664] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.891511] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.904703] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.911554] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.924682] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.931525] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.944738] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.951579] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.964671] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.971512] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1022.984682] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1022.991519] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.004754] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.011607] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.024740] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.031598] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.044731] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.051579] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.064749] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.071593] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.084762] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.091610] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.104777] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.111618] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.124802] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.131642] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.144792] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.151625] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.164806] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.171645] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.184819] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.191657] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.204816] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.211652] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.224850] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.231689] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.244855] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.251693] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.264876] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.271713] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.284885] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.291721] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.304896] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.311735] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.324921] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.331759] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.344927] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.351765] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.364949] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.371791] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.384962] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.391802] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.404982] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.411821] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.424984] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.431821] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.444998] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.451836] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.464987] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.471827] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.485031] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.491928] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.505055] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.511936] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.525078] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.531953] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.545076] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.551945] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.565089] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.571953] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.585092] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.591957] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.605129] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.611990] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.625118] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.631981] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.645155] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.652020] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.665144] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.672000] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.685134] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.691994] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.705153] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.712016] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.725173] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.732035] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.745188] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.752046] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.765188] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.772049] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.785220] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.792078] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.805225] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.812086] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.825271] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.832167] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.845238] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.852107] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.865311] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.872173] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.885308] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.892167] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.905332] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.912189] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.925317] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.932171] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.945340] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.952195] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.965337] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.972194] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1023.985362] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1023.992219] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.005416] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.012353] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.025412] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.032332] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.045423] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.052295] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.065428] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.072293] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.085438] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.092298] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.105437] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.112300] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.125446] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.132304] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.145464] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.152320] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.165476] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.172331] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.185473] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.192327] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.205483] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.212338] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.225513] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.232367] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.245525] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.252378] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.265536] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.272389] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.285536] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.292390] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.305548] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.312403] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.325574] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.332428] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.345571] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.352424] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.365592] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.372448] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.385599] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.392454] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.405617] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.412471] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.425641] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.432524] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.445638] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.452519] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.465632] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.472501] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.485681] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.492569] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.505655] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.512526] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.525672] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.532542] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.545684] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.552552] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.565700] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.572567] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.585711] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.592577] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.605730] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.612596] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.625704] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.632569] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.645752] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.652618] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.665754] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.672616] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.685760] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.692619] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.705766] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.712623] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.725787] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.732646] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.745788] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.752648] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.765824] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.772685] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.785834] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.792695] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.805847] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.812706] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.825878] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.832740] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.845855] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.852710] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.865893] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.872754] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.885893] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.892763] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.905923] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.912794] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.925909] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.932767] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.945930] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.952794] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.965930] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.972793] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1024.985968] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1024.992829] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.005999] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1025.012932] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.026044] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1025.032988] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.045990] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1025.052871] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.065996] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1025.072866] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.086021] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1025.092891] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.106043] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1025.112911] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1025.119751] @@@ dwc3_gadget_disconnect_interrupt 2366
[ 1025.124852] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x4
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
[root@Ronds: ~]#
/* 第二次插入U盘,此时Win7不能正确枚举U盘,提示“”无法识别的USB设备“” */
[root@Ronds: ~]# [ 1030.298406] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1030.305926] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1030.312817] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1030.319638] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1030.436708] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1030.449240] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1030.456068] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1030.496981] @@ dwc3_ep0_interrupt 1117, Transfer Not Ready while ep0in in state 'Setup Phase'
[ 1030.505557] @@ dwc3_ep0_interrupt 1127, 0x1
[ 1030.509759] @@@ dwc->ep0_expect_in: 1, 1
[ 1030.513701] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1030.592471] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1030.599317] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1030.643543] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1030.650391] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x5
[ 1030.713363] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[ 1030.725925] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x0
[ 1030.732752] @@@ dwc3_gadget_linksts_change_interrupt 2683, link_state:0x3
[root@Ronds: ~]#
[root@Ronds: ~]#
有人遇到过这个问题吗?
谢谢!
song zhang4:
回复 Denny%20Yang99373:
下面的patch可以解决这个问题,我测试了几把,第二次都可以识别出来了,谢谢了
diff –git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.cindex a83f79b9..01755d6 100644— a/drivers/usb/dwc3/gadget.c+++ b/drivers/usb/dwc3/gadget.c@@ -2708,6 +2708,7 @@ static void dwc3_gadget_interrupt(struct dwc3 *dwc, switch (event->type) { case DWC3_DEVICE_EVENT_DISCONNECT: dwc3_gadget_disconnect_interrupt(dwc);+ dwc3_gadget_reset_interrupt(dwc); break; case DWC3_DEVICE_EVENT_RESET: dwc3_gadget_reset_interrupt(dwc);
song zhang4:
回复 song zhang4:
这个应该是USB驱动的一个BUG,不清楚Ti会不会修复