Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758229AbYBXL0k (ORCPT ); Sun, 24 Feb 2008 06:26:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753499AbYBXL0a (ORCPT ); Sun, 24 Feb 2008 06:26:30 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:52285 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753329AbYBXL03 convert rfc822-to-8bit (ORCPT ); Sun, 24 Feb 2008 06:26:29 -0500 From: "Rafael J. Wysocki" To: Mirco Tischler Subject: Re: [PATCH] PM: Introduce PM_EVENT_HIBERNATE (was: Re: i915 hibernation patch (was: Re: 2.6.25-rc2 System no longer ...)) Date: Sun, 24 Feb 2008 12:25:20 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: Jeff Chua , Linus Torvalds , Jesse Barnes , Romano Giannetti , Dave Airlie , Greg KH , lkml , linux-acpi@vger.kernel.org, Pavel Machek , Alexey Starikovskiy , pm list , Len Brown , Andrew Morton References: <1203826599.30621.25.camel@mtlp> <200802241211.48000.rjw@sisk.pl> In-Reply-To: <200802241211.48000.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200802241225.21510.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2563 Lines: 68 On Sunday, 24 of February 2008, Rafael J. Wysocki wrote: > On Sunday, 24 of February 2008, Mirco Tischler wrote: > > > > On Sa, 2008-02-23 at 19:13 +0100, Rafael J. Wysocki wrote: > > > Index: linux-2.6/drivers/usb/host/u132-hcd.c > > > =================================================================== > > > --- linux-2.6.orig/drivers/usb/host/u132-hcd.c > > > +++ linux-2.6/drivers/usb/host/u132-hcd.c > > > @@ -3214,14 +3214,19 @@ static int u132_suspend(struct platform_ > > > return -ESHUTDOWN; > > > } else { > > > int retval = 0; > > > - if (state.event == PM_EVENT_FREEZE) { > > > + > > > + switch (state.event) { > > > + case PM_EVENT_FREEZE: > > > retval = u132_bus_suspend(hcd); > > > - } else if (state.event == PM_EVENT_SUSPEND) { > > > + break; > > > + case PM_EVENT_SUSPEND: > > > + case PM_EVENT_HIBERNATE: > > > int ports = MAX_U132_PORTS; > > > while (ports-- > 0) { > > > port_power(u132, ports, 0); > > > } > > > - } > > > + break; > > > + } > > > if (retval == 0) > > > pdev->dev.power.power_state = state; > > > return retval; > > Hmm. Doesn't compile for me in 2.6.25-rc2-git7: > > > > CC [M] drivers/usb/host/u132-hcd.o > > drivers/usb/host/u132-hcd.c: In function ‘u132_suspend’: > > drivers/usb/host/u132-hcd.c:3224: error: expected expression before > > ‘int’ > > drivers/usb/host/u132-hcd.c:3225: error: ‘ports’ undeclared (first use > > in this function) > > drivers/usb/host/u132-hcd.c:3225: error: (Each undeclared identifier is > > reported only once > > drivers/usb/host/u132-hcd.c:3225: error: for each function it appears > > in.) > > make[3]: *** [drivers/usb/host/u132-hcd.o] Error 1 > > make[2]: *** [drivers/usb/host] Error 2 > > make[1]: *** [drivers/usb] Error 2 > > make: *** [drivers] Error 2 > > > > This fixes it: > > > > Thanks > > Mirco > > > > --- > > From: Mirco Tischler > > > > Fixes the following compile error caused by commit > > 3a2d5b700132f35401f1d9e22fe3c2cab02c2549 Ah, I see it's merged already. Thanks for the fix, btw! :-) -- 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/