From: Johannes Erdfelt <jerdfelt@valinux.com>
To: "Grover, Andrew" <andrew.grover@intel.com>
Cc: "'linux-usb-devel@lists.sourceforge.net'"
<linux-usb-devel@lists.sourceforge.net>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"Acpi-linux (E-mail)" <acpi@phobos.fachschaften.tu-muenchen.de>
Subject: Re: [Acpi] [PATCH] USB suspend when no devices attached
Date: Fri, 16 Mar 2001 16:31:53 -0800 [thread overview]
Message-ID: <20010316163153.K25511@valinux.com> (raw)
In-Reply-To: <4148FEAAD879D311AC5700A0C969E8905DE775@orsmsx35.jf.intel.com>
In-Reply-To: <4148FEAAD879D311AC5700A0C969E8905DE775@orsmsx35.jf.intel.com>; from andrew.grover@intel.com on Fri, Mar 16, 2001 at 04:21:28PM -0800
On Fri, Mar 16, 2001, Grover, Andrew <andrew.grover@intel.com> wrote:
> This is a preliminary patch against 2.4.2 to uhci.c that puts the host
> controller into global suspend when there are no devices attached. This
> conserves power on mobile systems, and because suspending the host
> controller ceases UHCI's incessant busmastering activity, it allows the CPU
> to enter a deeper idle state.
>
> The main problem with this implementation is that it just looks at the 2
> root hub ports and suspends if nothing is connected. Ideally, it would be
> smart enough to realize it can also suspend when only hubs are present, or
> when all devices on the USB are also suspended. I hope a USB expert can add
> these enhancements, as it's beyond me.
If you want it to be seamless, you really can't do that. USB is a polled
bus, so the HC needs to send something to the device so it tells us that
something has changed, like a device being plugged into a hub (not the root
hub).
> You should be able to verify this patch is working in one of two ways:
> 1) Turn on USB debug messages, and look for suspend_hc and wakeup_hc
> messages
> 2) Download the latest ACPI patch from
> http://developer.intel.com/technology/iapc/acpi/downloads.htm and verify
> that /proc/acpi/processor/0/status shows mostly 0's for busmastering
> activity (as opposed to mostly F's) when no USB devices are connected.
Thanks for the patch. I'll integrate into my patch and send it off to Linus
as well after I run it through it's paces.
It looks good on visual inspection atleast.
JE
prev parent reply other threads:[~2001-03-17 0:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-17 0:21 [PATCH] USB suspend when no devices attached Grover, Andrew
2001-03-17 0:31 ` Johannes Erdfelt [this message]
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=20010316163153.K25511@valinux.com \
--to=jerdfelt@valinux.com \
--cc=acpi@phobos.fachschaften.tu-muenchen.de \
--cc=andrew.grover@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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