From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.osdl.org>,
USB development list <linux-usb-devel@lists.sourceforge.net>
Subject: Re: 2.6.14-rc4-mm1: USB suspend regression (was: Re: 2.6.14-rc1-mm1: usb breaks suspend)
Date: Wed, 19 Oct 2005 22:18:40 +0200 [thread overview]
Message-ID: <200510192218.40857.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0510191204090.5049-100000@iolanthe.rowland.org>
Hi,
On Wednesday, 19 of October 2005 18:18, Alan Stern wrote:
> [Trimmed the CC: list]
}-- snip --{
> > > > Stopping tasks: ========================|
> > > > Freeing memory... done (14642 pages freed)
> > > > Suspending device card0-0
> > > > Suspending device 2-2:1.0
> > > > Suspending device 2-2
> > > > Suspending device 3-0:1.0
> > > > hub 3-0:1.0: no suspend?
>
> This line is the puzzle. It indicates that the driver bound to the
> 3-0:1.0 device (which is a root hub interface for one of your USB
> controllers) doesn't have a suspend or resume method. But the hub driver
> _does_ have these methods!
Unless someone, like me, has CONFIG_USB_SUSPEND unset,
in which case they are #defined as NULLs (of course if I'm not missing
anything). Is now CONFIG_USB_SUSPEND mandatory for being able to suspend?
> Unless you somehow screwed up the build. Take a look inside
> drivers/usb/core/hub.c and make sure that the hub_suspend() and
> hub_resume() routines are listed in the hub_driver table, and that they
> haven't been preprocessed away into NULLs. You might end up needing to do
> a clean rebuild.
This already is a clean build, on top of 2.6.13 unpacked from scratch (well,
I have some patches applied, but they don't touch USB).
> > > > Suspending device usb3
> > > > Could not suspend device usb3: error -16
> > > > Some devices failed to suspend
>
> These errors occurred, naturally enough, because the driver for usb3
> refused to suspend since one of the children -- namely 3-0:1.0 -- wasn't
> suspended.
I've figured out that too. However, if something has no _suspend() routine,
verify_suspended() could return 0 for it, I think, instead of -EBUSY.
Greetings,
Rafael
next prev parent reply other threads:[~2005-10-19 20:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 10:01 2.6.14-rc1-mm1: usb breaks suspend Pavel Machek
2005-10-17 18:54 ` [linux-pm] " Alan Stern
2005-10-17 21:11 ` Rafael J. Wysocki
2005-10-18 1:01 ` Alan Stern
2005-10-19 13:13 ` 2.6.14-rc4-mm1: USB suspend regression (was: Re: 2.6.14-rc1-mm1: usb breaks suspend) Rafael J. Wysocki
2005-10-19 14:53 ` 2.6.14-rc4-mm1: USB suspend regression Mark Lord
2005-10-19 16:03 ` Alan Stern
2005-10-20 3:21 ` Mark Lord
2005-10-19 16:18 ` 2.6.14-rc4-mm1: USB suspend regression (was: Re: 2.6.14-rc1-mm1: usb breaks suspend) Alan Stern
2005-10-19 20:18 ` Rafael J. Wysocki [this message]
2005-10-19 20:46 ` Alan Stern
2005-10-19 22:16 ` Rafael J. Wysocki
2005-10-20 15:30 ` Alan Stern
2005-10-18 0:13 ` [linux-pm] 2.6.14-rc1-mm1: usb breaks suspend Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200510192218.40857.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-pm@lists.osdl.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox