public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
	linux-kernel@vger.kernel.org,
	ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
	Len Brown <lenb@kernel.org>
Subject: Re: 2.6.25-rc2 Regression Thinkpad acpi
Date: Mon, 25 Feb 2008 18:01:13 -0300	[thread overview]
Message-ID: <20080225210113.GF16513@khazad-dum.debian.net> (raw)
In-Reply-To: <20080225204951.GB4432@ics.muni.cz>

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

  reply	other threads:[~2008-02-25 21:01 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080225093914.GB4375@ics.muni.cz>
2008-02-25 11:47 ` 2.6.25-rc2 Regression Thinkpad acpi Rafael J. Wysocki
2008-02-25 20:03   ` Henrique de Moraes Holschuh
2008-02-25 20:49     ` Lukas Hejtmanek
2008-02-25 21:01       ` Henrique de Moraes Holschuh [this message]
2008-02-25 22:07         ` Lukas Hejtmanek
2008-02-25 23:00           ` Henrique de Moraes Holschuh
2008-02-25 23:05             ` Rafael J. Wysocki
2008-02-26 18:49             ` Lukas Hejtmanek
2008-03-04 19:45               ` Jens Axboe
2008-03-04 21:09                 ` Alexey Starikovskiy
2008-03-04 21:12                   ` Jens Axboe
2008-03-04 21:24                     ` Alexey Starikovskiy
2008-03-12 12:59                       ` Jens Axboe
2008-03-12 13:17                         ` Henrique de Moraes Holschuh
2008-03-12 13:24                           ` Jens Axboe
2008-03-12 13:35                             ` Henrique de Moraes Holschuh
2008-03-12 13:55                               ` Lukas Hejtmanek
2008-03-12 17:39                                 ` Henrique de Moraes Holschuh
2008-03-12 18:52                                 ` Arkadiusz Miskiewicz
2008-03-12 19:36                                   ` Lukas Hejtmanek
2008-03-12 21:13                                     ` Henrique de Moraes Holschuh
2008-03-13  7:30                                       ` Arkadiusz Miskiewicz
2008-03-13  7:33                                         ` Lukas Hejtmanek
2008-03-13 12:05                                       ` Jens Axboe
2008-03-13 12:23                                         ` Lukas Hejtmanek
2008-03-13 12:46                                           ` Jens Axboe
2008-03-13 12:55                                             ` Lukas Hejtmanek
2008-03-13 12:59                                               ` Jens Axboe
2008-03-13 13:09                                                 ` Lukas Hejtmanek
2008-03-13 13:13                                                   ` Jens Axboe
2008-03-13 14:37                                                     ` Alexey Starikovskiy
2008-03-13 14:39                                                       ` Jens Axboe
2008-03-13 14:52                                                         ` Alexey Starikovskiy
2008-03-13 14:59                                                           ` Jens Axboe
2008-03-13 15:04                                                             ` Alexey Starikovskiy
2008-03-13 15:09                                                               ` Jens Axboe
2008-03-13 22:55                                                 ` Henrique de Moraes Holschuh
2008-03-13 22:53                                         ` Henrique de Moraes Holschuh
2008-03-13 23:17                                   ` Henrique de Moraes Holschuh
2008-03-14  7:05                                     ` Jens Axboe
2008-03-14  7:30                                     ` Jens Axboe
2008-03-14 18:23                                       ` Arkadiusz Miskiewicz
2008-02-25 23:03           ` Tomas Carnecky
     [not found]     ` <20080225200354.GE16513-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2008-02-26 22:12       ` ACPI: thinkpad-acpi: fix hotkey_get_tablet_mode Henrique de Moraes Holschuh

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=20080225210113.GF16513@khazad-dum.debian.net \
    --to=hmh@hmh.eng.br \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=xhejtman@ics.muni.cz \
    /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