On 1/10/07, Alan Stern <[EMAIL PROTECTED]> wrote:
> On Wed, 10 Jan 2007, Jon Smirl wrote:
>
> > I just rebooted and all of the drivers loaded automatically but the
> > device didn't work.
> > Doing a usbreset of the device fixed everything.
> >
> > My best guess is that the "usb 2-1: usb auto-resume" failed to enable
> > power to the device.
>
> The dmesg log for the auto-resume which you posted earlier shows that the
> resume completed successfully.
>
> Note BTW that your guess is impossible.  In fact, the UHCI hardware
> doesn't even allow turning off the power to the port!
>
> What happened to the HID interface before the reset?

How can I check it? The controls cause events, is there some way to see them?

>
> > Note that the failure only happens when the device is plugged into a
> > root port. When plugged into a hub everything works ok.
> >
> > My root controller is:
> > USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI 
> > Controller
> >
> > So I'd suspect the resume code in the driver for that chip.
>
> I don't know of any problems in the resume code. If you think there are
> some, try attaching other devices to that port and see what happens when
> you suspend and resume them.

I just tried it in all four of my ports and got the same behavior. So
it probably not a bad port.

Also, what looks like a power LED may be a "CPU is reset and running
LED" I don't have schematics so I can't tell. I did plug in another
1.0 device which has a LED and it has power so maybe this is a "CPU is
running LED" and it takes a reset to turn it on.

Another possibility is that the device itself is not recovering from a
suspend without a reset.  Is there a tool for forcing the device in
and out of the suspend state? I tried setting power/state 0/2 and that
didn't seem to do anything. But if it is a problem in the device, why
does it work in a hub and not on the root? Don't the hubs get
suspended too?

A third possibility, after the device resumes some kind of uevent
isn't getting sent to the higher layers. How do I turn on udev logging
at boot?

Does udev work right if this happen?
usb finds device
2 seconds are up
device suspends
drivers loads which triggers resume

Trace of udev unplug/plug of the device
UEVENT[1168458162.824169] remove@/class/sound/mixer
UEVENT[1168458162.824241] remove@/class/sound/dsp
UEVENT[1168458162.824255] remove@/class/sound/audio
UEVENT[1168458162.824269] remove@/class/sound/pcmC0D0p
UEVENT[1168458162.824282] remove@/class/sound/pcmC0D0c
UEVENT[1168458162.824295] remove@/class/sound/controlC0
UEVENT[1168458162.824402]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.0
UEVENT[1168458162.824419]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.1
UEVENT[1168458162.824487]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.2
UEVENT[1168458162.824554] remove@/class/usb_endpoint/usbdev4.5_ep83
UEVENT[1168458162.824620] remove@/class/input/input6/event3
UEVENT[1168458162.824684] remove@/class/input/input6
UEVENT[1168458162.824701] remove@/class/usb/hiddev0
UEVENT[1168458162.824716] remove@/class/usb
UEVENT[1168458162.824848]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.3
UEVENT[1168458162.824920] remove@/class/usb_device/usbdev4.5
UEVENT[1168458162.824986] remove@/class/usb_endpoint/usbdev4.5_ep00
UEVENT[1168458162.826492] remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2
UDEV  [1168458162.832415] remove@/class/sound/mixer
UDEV  [1168458162.832450] remove@/class/sound/dsp
UDEV  [1168458162.854569] remove@/class/sound/audio
UDEV  [1168458162.854750] remove@/class/sound/pcmC0D0c
UDEV  [1168458162.854852] remove@/class/sound/controlC0
UDEV  [1168458162.854953]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.0
UDEV  [1168458162.855049]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.1
UDEV  [1168458162.855145]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.2
UDEV  [1168458162.855247] remove@/class/usb/hiddev0
UDEV  [1168458162.855340] remove@/class/usb
UDEV  [1168458162.855439] remove@/class/usb_device/usbdev4.5
UDEV  [1168458162.855547] remove@/class/usb_endpoint/usbdev4.5_ep00
UDEV  [1168458162.855642]
remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.3
UDEV  [1168458162.855798] remove@/devices/pci0000:00/0000:00:1d.2/usb4/4-2
UDEV  [1168458162.856778] remove@/class/usb_endpoint/usbdev4.5_ep83
UDEV  [1168458162.871826] remove@/class/sound/pcmC0D0p
UDEV  [1168458162.910740] remove@/class/input/input6/event3
UDEV  [1168458162.913831] remove@/class/input/input6
UEVENT[1168458170.575575] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2
UDEV  [1168458170.575575] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2
UEVENT[1168458170.575766] add@/class/usb_endpoint/usbdev4.6_ep00
UDEV  [1168458170.575766] add@/class/usb_endpoint/usbdev4.6_ep00
UEVENT[1168458170.575946] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.0
UDEV  [1168458170.597907] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.0
UEVENT[1168458170.662426] add@/class/sound/pcmC0D0p
UDEV  [1168458170.662426] add@/class/sound/pcmC0D0p
UEVENT[1168458170.662623] add@/class/sound/pcmC0D0c
UDEV  [1168458170.662623] add@/class/sound/pcmC0D0c
UEVENT[1168458170.662755] add@/class/sound/dsp
UDEV  [1168458170.662755] add@/class/sound/dsp
UEVENT[1168458170.662870] add@/class/sound/audio
UDEV  [1168458170.662870] add@/class/sound/audio
UEVENT[1168458170.663006] add@/class/sound/controlC0
UDEV  [1168458170.663006] add@/class/sound/mixer
UEVENT[1168458170.663121] add@/class/sound/mixer
UEVENT[1168458170.663191] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.1
UEVENT[1168458170.663261] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.2
UEVENT[1168458170.663327] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.3
UEVENT[1168458170.663405] add@/class/input/input7
UEVENT[1168458170.663465] add@/class/input/input7/event3
UEVENT[1168458170.663526] add@/class/usb/hiddev0
UEVENT[1168458170.663595] add@/class/usb_endpoint/usbdev4.6_ep83
UEVENT[1168458170.663662] add@/class/usb_device/usbdev4.6
UDEV  [1168458170.707150] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.3
UDEV  [1168458170.707263] add@/class/usb_endpoint/usbdev4.6_ep83
UDEV  [1168458170.707324] add@/class/usb/hiddev0
UDEV  [1168458170.812076] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.2
UDEV  [1168458170.852179] add@/class/sound/controlC0
UDEV  [1168458170.852316] add@/devices/pci0000:00/0000:00:1d.2/usb4/4-2/4-2:1.1
UDEV  [1168458170.928057] add@/class/usb_device/usbdev4.6
UDEV  [1168458171.003720] add@/class/input/input7
UDEV  [1168458171.072158] add@/class/input/input7/event3


-- 
Jon Smirl
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to