Skip to contentSkip to conversation

ASUS K53E fails to suspend if ehci_hcd is loaded

DISCUSSION Alan Stern 2 participants 2 messages Jun 17, 2011 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Alan Stern

author
#1 lore raw
Quoted 10 lines · Andrey Rahmatullin
Quoted 7 lines · Alan Stern
Quoted 5 lines
Quoted 4 lines

Okay, the next step is to try and find out exactly where the ehci suspend procedure is hanging. The patch below adds a bunch of printouts at various spots throughout the procedure. Let's see what shows up.

I don't see any of these new messages.

Are you sure the new ehci-hcd.ko module was loaded when you ran the test?

Yes. I'll triple-check though.

Quoted 7 lines
Quoted 6 lines

Another thing you should do when testing:

echo 9 >/proc/sys/kernel/printk

(Or equivalently, Alt-SysRq-9 on the keyboard.) I should have mentioned that before sending the test patch. Oh well....

I used dmesg -n8.

Okay, then you must have seen all the verbose PM debugging messages. Which means the last suspend callback to run was for the 1-1 device rather than the usb1 device, right?

If so, it means I was looking in the wrong place. 1-1 is the internal rate-matching hub, whereas usb1 is the EHCI controller's root hub.

Can you add your own dev_info() statements to the hub_quiesce() and hub_suspend() routines in drivers/usb/core/hub.c, or should I send a patch?

Alan Stern

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 10 lines · Alan Stern

Okay, then you must have seen all the verbose PM debugging messages. Which means the last suspend callback to run was for the 1-1 device rather than the usb1 device, right?

If so, it means I was looking in the wrong place. 1-1 is the internal rate-matching hub, whereas usb1 is the EHCI controller's root hub.

Can you add your own dev_info() statements to the hub_quiesce() and hub_suspend() routines in drivers/usb/core/hub.c, or should I send a patch?

After "usb 1-1.1: usb suspend" I see a full "start hub_suspend, hub_quiesce, rest of hub_suspend" path for 1-1:1.0 (I've used &intf->dev in suspend and hub->intfdev in quiesce as a 1st arg for dev_info()), then "usb 1-1: usb suspend" and after that it hangs.

Signature · 1 line
WBR, wRAR