From: "Rafael J. Wysocki" Subject: Re: [RFC][RFT][PATCH] ACPI: Protection from suspending in the middle of EC transaction Date: Sun, 31 Jan 2010 22:09:21 +0100 Message-ID: <201001312209.21212.rjw@sisk.pl> References: <201001310029.48717.rjw@sisk.pl> <1264970500.5544.0.camel@maxim-laptop> Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from ogre.sisk.pl ([217.79.144.158]:49851 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091Ab0AaVIv (ORCPT ); Sun, 31 Jan 2010 16:08:51 -0500 In-Reply-To: <1264970500.5544.0.camel@maxim-laptop> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Maxim Levitsky Cc: ACPI Devel Maling List , Alexey Starikovskiy , Len Brown , pm list , Thomas Renninger , Matthew Garrett , LKML On Sunday 31 January 2010, Maxim Levitsky wrote: > On Sun, 2010-01-31 at 00:29 +0100, Rafael J. Wysocki wrote: ... > > > > static int acpi_ec_resume(struct acpi_device *device) > > { > > struct acpi_ec *ec = acpi_driver_data(device); > > + > > + mutex_lock(&ec->lock); > > /* Enable use of GPE back */ > > acpi_enable_gpe(NULL, ec->gpe); > > + /* Allow transactions to happen again */ > > + set_bit(EC_FLAGS_SUSPENDED, &ec->flags); > ^^^^^^^^^^^^ > Thats why it doesn't work here.... > Will retest now. Ouch, sorry. Rafael