From: Carlos Corbacho <carlos@strangeworlds.co.uk>
To: Sven Wegener <sven.wegener@stealer.net>
Cc: Bob Moore <robert.moore@intel.com>,
Andi Kleen <ak@linux.intel.com>, Lin Ming <ming.m.lin@intel.com>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: acer-wmi broken in latest git kernel on TravelMate 6492 (Insufficient arguments - method [WQAA])
Date: Sat, 2 Aug 2008 17:28:45 +0100 [thread overview]
Message-ID: <200808021728.46046.carlos@strangeworlds.co.uk> (raw)
In-Reply-To: <alpine.LNX.1.10.0808021640310.2294@titan.stealer.net>
On Saturday 02 August 2008 16:50:54 Sven Wegener wrote:
> Is it a bug in acer-wmi or in Acer's ACPI implementation? I can provide
> more information as necessary.
Neither - it's a bug in wmi.c
Try the following patch:
---
ACPI: WMI: Set instance for query block calls
From: Carlos Corbacho <carlos@strangeworlds.co.uk>
Although the necessary data structure was set up, it was never actually
passed in, so data block calls have only been working by sheer chance.
(On Acer laptops. the data block methods we've been calling never look at
the instance value, hence acer-wmi never triggered this before).
f3454ae8104efb2dbf0d08ec42c6f5d0fe9225bc brought this to light.
Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
---
drivers/acpi/wmi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c
index c33b1c6..cfe2c83 100644
--- a/drivers/acpi/wmi.c
+++ b/drivers/acpi/wmi.c
@@ -347,7 +347,7 @@ struct acpi_buffer *out)
strcpy(method, "WQ");
strncat(method, block->object_id, 2);
- status = acpi_evaluate_object(handle, method, NULL, out);
+ status = acpi_evaluate_object(handle, method, &input, out);
/*
* If ACPI_WMI_EXPENSIVE, call the relevant WCxx method, even if
next prev parent reply other threads:[~2008-08-02 16:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-02 15:50 acer-wmi broken in latest git kernel on TravelMate 6492 (Insufficient arguments - method [WQAA]) Sven Wegener
2008-08-02 16:28 ` Carlos Corbacho [this message]
2008-08-02 17:01 ` Sven Wegener
2008-08-27 13:54 ` Matthew Garrett
2008-08-27 14:24 ` Sven Wegener
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=200808021728.46046.carlos@strangeworlds.co.uk \
--to=carlos@strangeworlds.co.uk \
--cc=ak@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.m.lin@intel.com \
--cc=robert.moore@intel.com \
--cc=sven.wegener@stealer.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