From: Andrew Morton <akpm@linux-foundation.org>
To: Steven Noonan <steven.noonan@uplinklabs.net>
Cc: linux-kernel@vger.kernel.org,
Steven Noonan <steven@uplinklabs.net>,
linux-usb@vger.kernel.org
Subject: Re: [PATCH 1/1] drivers/usb/host/pci-quirks.c: wait for EHCI handoff far too long in quirk_usb_disable_ehci()
Date: Mon, 8 Sep 2008 21:44:26 -0700 [thread overview]
Message-ID: <20080908214426.49626bf0.akpm@linux-foundation.org> (raw)
In-Reply-To: <1220747393-10401-2-git-send-email-steven@uplinklabs.net>
(cc linux-usb)
On Sat, 6 Sep 2008 17:29:53 -0700 Steven Noonan <steven.noonan@uplinklabs.net> wrote:
> This patch fixes a very noticeable bootup delay on some
> systems (in my particular case, an HP dv5178us). The
> problem is caused by a buggy BIOS which doesn't properly
> announce that the handoff was completed.
>
> The delay in the current version of pci-quirks.c is 5 seconds,
> which I've cut down to 0.5 seconds.
>
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
> ---
> drivers/usb/host/pci-quirks.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c
> index ae6e70e..9a3609a 100644
> --- a/drivers/usb/host/pci-quirks.c
> +++ b/drivers/usb/host/pci-quirks.c
> @@ -271,7 +271,7 @@ static void __devinit quirk_usb_disable_ehci(struct pci_dev *pdev)
> /* if boot firmware now owns EHCI, spin till
> * it hands it over.
> */
> - msec = 5000;
> + msec = 500;
> while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) {
> tried_handoff = 1;
> msleep(10);
I guess it risks breaking someone else's system. Or perhaps the number
was just grabbed out of the air.
Can we do a separate quirk just for that machine (and ones with the
same bug)?
next prev parent reply other threads:[~2008-09-09 4:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-07 0:29 [PATCH 0/1] EHCI handoff failure timeout too long Steven Noonan
2008-09-07 0:29 ` [PATCH 1/1] drivers/usb/host/pci-quirks.c: wait for EHCI handoff far too long in quirk_usb_disable_ehci() Steven Noonan
2008-09-09 4:44 ` Andrew Morton [this message]
2008-09-09 14:13 ` Alan Stern
2008-09-12 23:28 ` David Brownell
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=20080908214426.49626bf0.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=steven.noonan@uplinklabs.net \
--cc=steven@uplinklabs.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
Powered by JetHome