On Tue, Mar 25 2014, Alan Stern wrote:

> Below is a patch you should apply to normal 3.14 (nothing reverted).  

Hi Alan,

I've used 3.12.14, because the source-tree is already set up. I hope
that this is ok.


> For this test, plug some device you aren't going to use (the mouse, for
> example, if you will be at a VT console instead of a graphics console) 
> into the rear port normally used by the mouse.  Plug the keyboard and 
> anything else into front ports -- no other devices should be attached 
> to a rear port.
>
> Then you can force the test device to go into runtime suspend by typing 
> this:
>
>       echo auto >/sys/bus/usb/devices/4-2/power/control
>       echo 0 >/sys/bus/usb/devices/4-2/bConfigurationValue
>
> (I believe 4-2 is the correct path for the rear port where you like to 
> plug the mouse.)
>
> After 5 seconds or so, force the device to resume by typing:
>
>       echo on >/sys/bus/usb/devices/4-2/power/control
>
> Let's see what shows up in the kernel log.  With luck the resume will 
> hang but the rest of your system will keep on running.

No more mouse after the test, but the rest of the system works.
Please find attached the log (copied from /var/log/messages).

Here my commands:
echo 8 >/proc/sys/kernel/printk
echo auto >/sys/bus/usb/devices/4-2/power/control
sleep 2
echo 0 >/sys/bus/usb/devices/4-2/bConfigurationValue
sleep 10
echo on >/sys/bus/usb/devices/4-2/power/control

-- 
           Peter
kernel: [  103.387198] usb 4-2: usb auto-suspend, wakeup 1
kernel: [  103.387911] hub 4-0:1.0: hub_suspend
kernel: [  103.387945] usb usb4: bus auto-suspend, wakeup 1
kernel: [  103.387955] ohci-pci 0000:00:12.1: suspend root hub
kernel: [  105.441905] usb usb4: usb auto-resume
kernel: [  105.441923] ohci-pci 0000:00:12.1: resume root hub
kernel: [  105.515991] hub 4-0:1.0: hub_resume
kernel: [  105.516127] hub 4-0:1.0: port 2: status 0303 change 0000
kernel: [  105.516253] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0000
kernel: [  105.516311] usb 4-2: finish resume
kernel: [  105.516995] ohci-pci 0000:00:12.1: urb ffff88012188f8c0 path 2 ep0in 5ec20000 cc 5 --> status -62
kernel: [  105.517033] usb 4-2: retry with reset-resume
kernel: [  105.546948] ohci-pci 0000:00:12.1: port[1] reset timeout, stat 00000313
kernel: [  105.550068] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  105.717102] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  105.749125] ohci-pci 0000:00:12.1: GetStatus roothub.portstatus [1] = 0x00100303 PRSC LSDA PPS PES CCS
kernel: [  105.805213] usb 4-2: reset low-speed USB device number 2 using ohci-pci
kernel: [  105.831072] ohci-pci 0000:00:12.1: port[1] reset timeout, stat 00000313
kernel: [  105.965243] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  106.033264] ohci-pci 0000:00:12.1: GetStatus roothub.portstatus [1] = 0x00100303 PRSC LSDA PPS PES CCS
kernel: [  106.121391] usb 4-2: unregistering interface 4-2:1.0
kernel: [  106.121496] ohci-pci 0000:00:12.1: shutdown urb ffff8800cfa85380 ep1in-intr
kernel: [  106.149844] usb 4-2: usb_disable_device nuking non-ep0 URBs
kernel: [  108.150409] usb 4-2: usb auto-suspend, wakeup 0
kernel: [  108.150429] hub 4-0:1.0: hub_suspend
kernel: [  108.150456] usb usb4: bus auto-suspend, wakeup 1
kernel: [  108.150465] ohci-pci 0000:00:12.1: suspend root hub
kernel: [  116.159228] usb usb4: usb auto-resume
kernel: [  116.159246] ohci-pci 0000:00:12.1: resume root hub
kernel: [  116.233915] hub 4-0:1.0: hub_resume
kernel: [  116.234070] hub 4-0:1.0: port 2: status 0303 change 0000
kernel: [  116.234179] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  116.234255] usb 4-2: finish resume
kernel: [  116.234880] ohci-pci 0000:00:12.1: urb ffff8800ce12b2c0 path 2 ep0in 5ec20000 cc 5 --> status -62
kernel: [  116.234977] usb 4-2: retry with reset-resume
kernel: [  116.264823] ohci-pci 0000:00:12.1: port[1] reset timeout, stat 00000313
kernel: [  116.268901] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  116.386971] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  116.466997] ohci-pci 0000:00:12.1: GetStatus roothub.portstatus [1] = 0x00100303 PRSC LSDA PPS PES CCS
kernel: [  116.523077] usb 4-2: reset low-speed USB device number 2 using ohci-pci
kernel: [  116.548990] ohci-pci 0000:00:12.1: port[1] reset timeout, stat 00000313
kernel: [  116.635142] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0004
kernel: [  116.751153] ohci-pci 0000:00:12.1: GetStatus roothub.portstatus [1] = 0x00100303 PRSC LSDA PPS PES CCS

Reply via email to