Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756602AbYKEKWy (ORCPT ); Wed, 5 Nov 2008 05:22:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755016AbYKEKWS (ORCPT ); Wed, 5 Nov 2008 05:22:18 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:45771 "EHLO UNKNOWN" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754763AbYKEKWQ (ORCPT ); Wed, 5 Nov 2008 05:22:16 -0500 Date: Wed, 5 Nov 2008 11:00:50 +0100 From: Pavel Machek To: Steven Noonan Cc: linux-kernel@vger.kernel.org, Andrew Morton , Alan Stern , Greg KH , David Brownell Subject: Re: [PATCH] EHCI pci-quirks.c: wait for BIOS handoff too long Message-ID: <20081105100050.GB1424@ucw.cz> References: <1225774635-15032-1-git-send-email-steven@uplinklabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1225774635-15032-1-git-send-email-steven@uplinklabs.net> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1547 Lines: 41 On Mon 2008-11-03 20:57:15, Steven Noonan wrote: > Instead of waiting a painful 5000ms, quirk_usb_disable_ehci() now does a > 1000ms loop to wait for the BIOS to acknowledge the handoff. > > Cc: Andrew Morton > Cc: Alan Stern > Cc: Greg KH > Cc: David Brownell > Signed-off-by: Steven Noonan > --- > 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..1968ba1 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 = 1000; > while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { > tried_handoff = 1; > msleep(10); If the bios is non-broken, it will acknowledge hndover and it takes 10msec total. If the bios is broken, 5 seconds may be handy. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/