Re: USB reset xhci_hcd for ELAN touchscreen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 31, 2014 at 08:54:52AM -0700, Greg KH wrote:
> On Sat, May 31, 2014 at 04:45:01PM +0200, Bjørn Mork wrote:
> > Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> writes:
> > 
> > > ffff8800da9be6c0 3444255124 S Ci:2:067:0 s 80 06 0100 0000 0012 18 <
> > > ffff8800da9be6c0 3444255418 C Ci:2:067:0 0 18 = 12010002 00000008 f3048900 1300040e 0001
> > 
> > So you are successfully reading the device descriptor in hub_port_init()
> > 
> > > ffff88020b7a76c0 3444255485 S Ci:2:067:0 s 80 06 0600 0000 000a 10 <
> > > ffff88020b7a76c0 3444255548 C Ci:2:067:0 -32 0
> > > ffff88020b7a76c0 3444255612 S Ci:2:067:0 s 80 06 0600 0000 000a 10 <
> > > ffff88020b7a76c0 3446360388 C Ci:2:067:0 -71 0
> > > ffff88020b7a76c0 3446360451 S Ci:2:067:0 s 80 06 0600 0000 000a 10 <
> > > ffff88020b7a76c0 3446360539 C Ci:2:067:0 -71 0
> > 
> > 
> > Then you hit this part of hub_port_connect_change():
> > 
> >                 /* check for devices running slower than they could */
> >                 if (le16_to_cpu(udev->descriptor.bcdUSB) >= 0x0200
> >                                 && udev->speed == USB_SPEED_FULL
> >                                 && highspeed_hubs != 0)
> >                         check_highspeed (hub, udev, port1);
> > 
> > 
> > And check_highspeed() calls usb_get_descriptor() to get the
> > USB_DT_DEVICE_QUALIFIER descriptor, but this device doesn't like that
> > and stalls.   usb_get_descriptor() still tries 3 times before giving up,
> > but it looks like the stall isn't cleared like it should be?
> 
> Yeah, that doesn't make sense, the device really doesn't like that call.
> So I stopped making that call to it and it now works a bit better, but
> is constantly disconnecting itself from the bus now and reconnecting
> itself.
> 
> I'll work on this more later on today, thanks for the initial push...

Ok, here's the dump for when the device keeps disconnecting itself from
the bus (no call to check_highspeed() anymore).

Things go better, but then the device just goes quiet, and resets.  Any
ideas?  I'll dig further this evening...

greg k-h

ffff880211d106c0 2609891042 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2609891057 S Ii:2:001:1 -115:2048 4 <
ffff8801d684d0c0 2609891082 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684d0c0 2609891098 C Ci:2:001:0 0 4 = 00010100
ffff8800da80ca80 2609891110 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8800da80ca80 2609891121 C Co:2:001:0 0 0
ffff8801d684dd80 2609891729 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684dd80 2609891759 C Ci:2:001:0 0 4 = 00010000
ffff880211d106c0 2609912084 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2609912093 S Ii:2:001:1 -115:2048 4 <
ffff8801d684dd80 2609919399 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684dd80 2609919433 C Ci:2:001:0 0 4 = 01010100
ffff8801d684dd80 2609919454 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8801d684dd80 2609919469 C Co:2:001:0 0 0
ffff8801d684dd80 2609949386 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684dd80 2609949424 C Ci:2:001:0 0 4 = 01010000
ffff8801d684dd80 2609979318 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684dd80 2609979340 C Ci:2:001:0 0 4 = 01010000
ffff8800d906a540 2610009382 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800d906a540 2610009406 C Ci:2:001:0 0 4 = 01010000
ffff8802142a3f00 2610039392 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8802142a3f00 2610039425 C Ci:2:001:0 0 4 = 01010000
ffff8800d906a780 2610039532 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8800d906a780 2610039555 C Co:2:001:0 0 0
ffff8802142a3540 2610092725 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8802142a3540 2610092750 C Ci:2:001:0 0 4 = 11010000
ffff8800d906a9c0 2610146058 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800d906a9c0 2610146083 C Ci:2:001:0 0 4 = 03011000
ffff8802142a39c0 2610199383 S Co:2:001:0 s 23 01 0014 0007 0000 0
ffff8802142a39c0 2610199408 C Co:2:001:0 0 0
ffff8800d906a0c0 2610199521 S Ci:2:000:0 s 80 06 0100 0000 0040 64 <
ffff8800d906a0c0 2610199628 C Ci:2:000:0 0 8 = 12010002 00000008
ffff8801d684d9c0 2610199688 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8801d684d9c0 2610199716 C Co:2:001:0 0 0
ffff8800da80cc00 2610252724 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da80cc00 2610252749 C Ci:2:001:0 0 4 = 11010000
ffff8801d684d9c0 2610306059 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684d9c0 2610306084 C Ci:2:001:0 0 4 = 03011000
ffff8800d906a0c0 2610359373 S Co:2:001:0 s 23 01 0014 0007 0000 0
ffff8800d906a0c0 2610359397 C Co:2:001:0 0 0
ffff8800d906a0c0 2610372685 S Ci:2:112:0 s 80 06 0100 0000 0012 18 <
ffff8800d906a0c0 2610372929 C Ci:2:112:0 0 18 = 12010002 00000008 f3048900 1300040e 0001
ffff8801d684d540 2610372974 S Ci:2:112:0 s 80 06 0200 0000 0009 9 <
ffff8801d684d540 2610373139 C Ci:2:112:0 0 9 = 09022900 010100e0 32
ffff8801d684d540 2610373167 S Ci:2:112:0 s 80 06 0200 0000 0029 41 <
ffff8801d684d540 2610373479 C Ci:2:112:0 0 41 = 09022900 010100e0 32090400 00020300 00000921 10010001 229d0307 05810340
ffff8801d684dd80 2610373508 S Ci:2:112:0 s 80 06 0300 0000 00ff 255 <
ffff8801d684dd80 2610373612 C Ci:2:112:0 0 4 = 04030904
ffff8801d684dd80 2610373636 S Ci:2:112:0 s 80 06 030e 0409 00ff 255 <
ffff8801d684dd80 2610373895 C Ci:2:112:0 0 24 = 18035400 6f007500 63006800 73006300 72006500 65006e00
ffff8801d684dd80 2610373922 S Ci:2:112:0 s 80 06 0304 0409 00ff 255 <
ffff8801d684dd80 2610374066 C Ci:2:112:0 0 10 = 0a034500 4c004100 4e00
ffff8800d906a9c0 2610374602 S Co:2:112:0 s 00 09 0001 0000 0000 0
ffff8800d906a9c0 2610374645 C Co:2:112:0 0 0
ffff8800d906a780 2610374837 S Co:2:112:0 s 21 0a 0000 0000 0000 0
ffff8800d906a780 2610374940 C Co:2:112:0 0 0
ffff8801d684d0c0 2610374976 S Ci:2:112:0 s 81 06 2200 0000 039d 925 <
ffff8801d684d0c0 2610379698 C Ci:2:112:0 0 925 = 050d0904 a1018501 0922a102 09421500 25017501 95018102 75018103 75060951
ffff8801d684d840 2610381285 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801d684d840 2610381303 C Ci:2:001:0 0 4 = 03010000
ffff880211d106c0 2612480635 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2612480649 S Ii:2:001:1 -115:2048 4 <
ffff8800739bd240 2612480693 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd240 2612480711 C Ci:2:001:0 0 4 = 00010100
ffff8800da80c9c0 2612480734 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8800da80c9c0 2612480767 C Co:2:001:0 0 0
ffff8800739bdd80 2612481800 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bdd80 2612481824 C Ci:2:001:0 0 4 = 00010000
ffff880211d106c0 2612501754 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2612501771 S Ii:2:001:1 -115:2048 4 <
ffff8800739bd540 2612509396 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd540 2612509436 C Ci:2:001:0 0 4 = 01010100
ffff8800da80c6c0 2612509466 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8800da80c6c0 2612509489 C Co:2:001:0 0 0
ffff8800739bde40 2612539382 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bde40 2612539407 C Ci:2:001:0 0 4 = 01010000
ffff8800da80c600 2612569385 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da80c600 2612569410 C Ci:2:001:0 0 4 = 01010000
ffff8800739bd840 2612599383 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd840 2612599409 C Ci:2:001:0 0 4 = 01010000
ffff8800da80cb40 2612629381 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da80cb40 2612629405 C Ci:2:001:0 0 4 = 01010000
ffff8800739bd900 2612629500 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8800739bd900 2612629521 C Co:2:001:0 0 0
ffff8800d906a780 2612682734 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800d906a780 2612682772 C Ci:2:001:0 0 4 = 11010000
ffff8800739bd9c0 2612736080 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd9c0 2612736114 C Ci:2:001:0 0 4 = 03011000
ffff8800da80c840 2612789385 S Co:2:001:0 s 23 01 0014 0007 0000 0
ffff8800da80c840 2612789411 C Co:2:001:0 0 0
ffff8800d906a9c0 2612789534 S Ci:2:000:0 s 80 06 0100 0000 0040 64 <
ffff8800d906a9c0 2612789644 C Ci:2:000:0 0 8 = 12010002 00000008
ffff8800739bdb40 2612789698 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8800739bdb40 2612789736 C Co:2:001:0 0 0
ffff8800da80c6c0 2612842692 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da80c6c0 2612842735 C Ci:2:001:0 0 4 = 11010000
ffff8800739bd6c0 2612896059 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd6c0 2612896084 C Ci:2:001:0 0 4 = 03011000
ffff8800d906a0c0 2612949452 S Co:2:001:0 s 23 01 0014 0007 0000 0
ffff8800d906a0c0 2612949482 C Co:2:001:0 0 0
ffff8800d906a240 2612962727 S Ci:2:113:0 s 80 06 0100 0000 0012 18 <
ffff8800d906a240 2612963010 C Ci:2:113:0 0 18 = 12010002 00000008 f3048900 1300040e 0001
ffff8800739bd6c0 2612963086 S Ci:2:113:0 s 80 06 0200 0000 0009 9 <
ffff8800739bd6c0 2612963249 C Ci:2:113:0 0 9 = 09022900 010100e0 32
ffff8800739bd6c0 2612963312 S Ci:2:113:0 s 80 06 0200 0000 0029 41 <
ffff8800739bd6c0 2612963657 C Ci:2:113:0 0 41 = 09022900 010100e0 32090400 00020300 00000921 10010001 229d0307 05810340
ffff8800739bdb40 2612963725 S Ci:2:113:0 s 80 06 0300 0000 00ff 255 <
ffff8800739bdb40 2612963844 C Ci:2:113:0 0 4 = 04030904
ffff8800739bdb40 2612963895 S Ci:2:113:0 s 80 06 030e 0409 00ff 255 <
ffff8800739bdb40 2612964121 C Ci:2:113:0 0 24 = 18035400 6f007500 63006800 73006300 72006500 65006e00
ffff8800739bdb40 2612964174 S Ci:2:113:0 s 80 06 0304 0409 00ff 255 <
ffff8800739bdb40 2612964326 C Ci:2:113:0 0 10 = 0a034500 4c004100 4e00
ffff8800d906a240 2612964894 S Co:2:113:0 s 00 09 0001 0000 0000 0
ffff8800d906a240 2612964944 C Co:2:113:0 0 0
ffff8800d906a0c0 2612965174 S Co:2:113:0 s 21 0a 0000 0000 0000 0
ffff8800d906a0c0 2612965271 C Co:2:113:0 0 0
ffff8800739bd9c0 2612965303 S Ci:2:113:0 s 81 06 2200 0000 039d 925 <
ffff8800739bd9c0 2612970076 C Ci:2:113:0 0 925 = 050d0904 a1018501 0922a102 09421500 25017501 95018102 75018103 75060951
ffff8800739bdf00 2612971873 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bdf00 2612971894 C Ci:2:001:0 0 4 = 03010000
ffff880211d106c0 2615071028 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2615071047 S Ii:2:001:1 -115:2048 4 <
ffff8800739bd780 2615071096 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd780 2615071126 C Ci:2:001:0 0 4 = 00010100
ffff8800da80c000 2615071169 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8800da80c000 2615071212 C Co:2:001:0 0 0
ffff8801eb07d840 2615072447 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d840 2615072469 C Ci:2:001:0 0 4 = 00010000
ffff880211d106c0 2615092124 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2615092139 S Ii:2:001:1 -115:2048 4 <
ffff8801eb07d840 2615099392 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d840 2615099419 C Ci:2:001:0 0 4 = 01010100
ffff8800d97b06c0 2615099446 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8800d97b06c0 2615099470 C Co:2:001:0 0 0
ffff8801eb07d600 2615129406 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d600 2615129443 C Ci:2:001:0 0 4 = 01010000
ffff8800d97b0480 2615159380 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800d97b0480 2615159405 C Ci:2:001:0 0 4 = 01010000
ffff8801eb07df00 2615189389 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07df00 2615189414 C Ci:2:001:0 0 4 = 01010000
ffff8800d97b0d80 2615219387 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800d97b0d80 2615219411 C Ci:2:001:0 0 4 = 01010000
ffff8801eb07df00 2615219499 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8801eb07df00 2615219544 C Co:2:001:0 0 0
ffff8800d97b0d80 2615272724 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800d97b0d80 2615272749 C Ci:2:001:0 0 4 = 11010000
ffff8801eb07d600 2615326060 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d600 2615326085 C Ci:2:001:0 0 4 = 03011000
ffff8800d97b0480 2615379331 S Co:2:001:0 s 23 01 0014 0007 0000 0
ffff8800d97b0480 2615379352 C Co:2:001:0 0 0
ffff8801eb07d840 2615379430 S Ci:2:000:0 s 80 06 0100 0000 0040 64 <
ffff8801eb07d840 2615379526 C Ci:2:000:0 0 8 = 12010002 00000008
ffff8800739bde40 2615379578 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8800739bde40 2615379602 C Co:2:001:0 0 0
ffff8800da80c780 2615432687 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da80c780 2615432704 C Ci:2:001:0 0 4 = 11010000
ffff8800739bd9c0 2615486015 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd9c0 2615486031 C Ci:2:001:0 0 4 = 03011000
ffff8801eb07dd80 2615539459 S Co:2:001:0 s 23 01 0014 0007 0000 0
ffff8801eb07dd80 2615539483 C Co:2:001:0 0 0
ffff8800739bd840 2615552750 S Ci:2:114:0 s 80 06 0100 0000 0012 18 <
ffff8800739bd840 2615553033 C Ci:2:114:0 0 18 = 12010002 00000008 f3048900 1300040e 0001
ffff8800739bd840 2615553107 S Ci:2:114:0 s 80 06 0200 0000 0009 9 <
ffff8800739bd840 2615553268 C Ci:2:114:0 0 9 = 09022900 010100e0 32
ffff8800739bd840 2615553332 S Ci:2:114:0 s 80 06 0200 0000 0029 41 <
ffff8800739bd840 2615553678 C Ci:2:114:0 0 41 = 09022900 010100e0 32090400 00020300 00000921 10010001 229d0307 05810340
ffff8800739bd900 2615553745 S Ci:2:114:0 s 80 06 0300 0000 00ff 255 <
ffff8800739bd900 2615553824 C Ci:2:114:0 0 4 = 04030904
ffff8800739bd900 2615553875 S Ci:2:114:0 s 80 06 030e 0409 00ff 255 <
ffff8800739bd900 2615554124 C Ci:2:114:0 0 24 = 18035400 6f007500 63006800 73006300 72006500 65006e00
ffff8800739bd900 2615554187 S Ci:2:114:0 s 80 06 0304 0409 00ff 255 <
ffff8800739bd900 2615554337 C Ci:2:114:0 0 10 = 0a034500 4c004100 4e00
ffff8800739bd540 2615554939 S Co:2:114:0 s 00 09 0001 0000 0000 0
ffff8800739bd540 2615554985 C Co:2:114:0 0 0
ffff8800739bdf00 2615555212 S Co:2:114:0 s 21 0a 0000 0000 0000 0
ffff8800739bdf00 2615555282 C Co:2:114:0 0 0
ffff8800739bdf00 2615555306 S Ci:2:114:0 s 81 06 2200 0000 039d 925 <
ffff8800739bdf00 2615560074 C Ci:2:114:0 0 925 = 050d0904 a1018501 0922a102 09421500 25017501 95018102 75018103 75060951
ffff8800739bd6c0 2615561886 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800739bd6c0 2615561906 C Ci:2:001:0 0 4 = 03010000
ffff880211d106c0 2617663117 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2617663130 S Ii:2:001:1 -115:2048 4 <
ffff8802142a3e40 2617663171 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8802142a3e40 2617663191 C Ci:2:001:0 0 4 = 00010100
ffff8802142a3e40 2617663201 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8802142a3e40 2617663210 C Co:2:001:0 0 0
ffff88020b5f59c0 2617664346 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff88020b5f59c0 2617664370 C Ci:2:001:0 0 4 = 00010000
ffff880211d106c0 2617684242 C Ii:2:001:1 0:2048 2 = 8000
ffff880211d106c0 2617684257 S Ii:2:001:1 -115:2048 4 <
ffff8801eb07d480 2617692746 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d480 2617692772 C Ci:2:001:0 0 4 = 01010100
ffff8800da9bee40 2617692900 S Co:2:001:0 s 23 01 0010 0007 0000 0
ffff8800da9bee40 2617692918 C Co:2:001:0 0 0
ffff8801eb07d300 2617722722 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d300 2617722757 C Ci:2:001:0 0 4 = 01010000
ffff8800da9becc0 2617752713 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da9becc0 2617752738 C Ci:2:001:0 0 4 = 01010000
ffff8801eb07d000 2617782728 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8801eb07d000 2617782752 C Ci:2:001:0 0 4 = 01010000
ffff8800da9be000 2617812662 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da9be000 2617812683 C Ci:2:001:0 0 4 = 01010000
ffff8801eb07d6c0 2617812747 S Co:2:001:0 s 23 03 0004 0007 0000 0
ffff8801eb07d6c0 2617812759 C Co:2:001:0 0 0
ffff8800da9be300 2617866058 S Ci:2:001:0 s a3 00 0000 0007 0004 4 <
ffff8800da9be300 2617866085 C Ci:2:001:0 0 4 = 11010000
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux