Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758677AbYBYVBb (ORCPT ); Mon, 25 Feb 2008 16:01:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752467AbYBYVBU (ORCPT ); Mon, 25 Feb 2008 16:01:20 -0500 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:40190 "EHLO out3.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbYBYVBS (ORCPT ); Mon, 25 Feb 2008 16:01:18 -0500 X-Sasl-enc: nPNhM/3qbHpggn/aqmNj9RnQ75beGFobZYJAzD7/4UU8 1203973277 Date: Mon, 25 Feb 2008 18:01:13 -0300 From: Henrique de Moraes Holschuh To: Lukas Hejtmanek Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, ACPI Devel Maling List , Len Brown Subject: Re: 2.6.25-rc2 Regression Thinkpad acpi Message-ID: <20080225210113.GF16513@khazad-dum.debian.net> References: <20080225093914.GB4375@ics.muni.cz> <200802251247.30605.rjw@sisk.pl> <20080225200354.GE16513@khazad-dum.debian.net> <20080225204951.GB4432@ics.muni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080225204951.GB4432@ics.muni.cz> X-GPG-Fingerprint: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04 3738 EE25 DE3F 1CDB 0FE3 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1636 Lines: 42 On Mon, 25 Feb 2008, Lukas Hejtmanek wrote: > On Mon, Feb 25, 2008 at 05:03:54PM -0300, Henrique de Moraes Holschuh wrote: > > This commit is indeed broken, and I have a tentative fix for it. But I'd > > like to have a better description of just "how" the thinkpad keys do not > > work anymore, to make sure I fix the entire breakage in one go. I will > > stare at the code and the fix a bit more before sending in any patches, > > though. > > Well, keys generate ACPI interrupt but acpid never receives any event. Not even over the new netlink socket? Or the thinkpad-acpi input device? Please send me the debug output of thinkpad-acpi loading, just in case. > I would be happy to test fixes to see whether things go well. Sure, try this one: diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 7500c44..0f74351 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c @@ -1078,7 +1078,8 @@ static int hotkey_get_tablet_mode(int *status) if (!acpi_evalf(hkey_handle, &s, "MHKG", "d")) return -EIO; - return ((s & TP_HOTKEY_TABLET_MASK) != 0); + *status = ((s & TP_HOTKEY_TABLET_MASK) != 0); + return 0; } /* -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- 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/