Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac mini Core Duo

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Wednesday, April 2, 2008 - 12:26 pm

On Tue, 1 Apr 2008, Tino Keitel wrote:


Tino, try this patch.  It fixed Mark Lord's problem, which looked the 
same as yours.

Alan Stern



--- rc8/drivers/usb/host/ehci-hub.c	2008-03-11 11:18:40.000000000 -0400
+++ linux/drivers/usb/host/ehci-hub.c	2008-04-02 13:28:50.000000000 -0400
@@ -135,8 +135,6 @@
 		hcd->state = HC_STATE_QUIESCING;
 	}
 	ehci->command = ehci_readl(ehci, &ehci->regs->command);
-	if (ehci->reclaim)
-		end_unlink_async(ehci);
 	ehci_work(ehci);
 
 	/* Unlike other USB host controller types, EHCI doesn't have
@@ -180,6 +178,9 @@
 	ehci_halt (ehci);
 	hcd->state = HC_STATE_SUSPENDED;
 
+	if (ehci->reclaim)
+		end_unlink_async(ehci);
+
 	/* allow remote wakeup */
 	mask = INTR_MASK;
 	if (!device_may_wakeup(&hcd->self.root_hub->dev))



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Rafael J. Wysocki, (Thu Mar 20, 3:10 am)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Rafael J. Wysocki, (Fri Mar 28, 4:03 pm)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Rafael J. Wysocki, (Mon Mar 31, 3:17 pm)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Soeren Sonnenburg, (Mon Mar 31, 11:23 pm)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Soeren Sonnenburg, (Mon Mar 31, 11:38 pm)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Soeren Sonnenburg, (Wed Apr 2, 10:33 am)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Rafael J. Wysocki, (Wed Apr 2, 10:56 am)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Soeren Sonnenburg, (Wed Apr 2, 11:42 am)
Re: 2.6.25-rc6 hangs at resume after suspend to RAM on Mac ..., Alan Stern, (Wed Apr 2, 12:26 pm)