mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Fn key and 2.6.12-rc4
       [not found]                   ` <20050802071736.GA22055@baumbart.home.lxtec.de>
@ 2005-08-02  9:11                     ` Stelian Pop
  0 siblings, 0 replies; only message in thread
From: Stelian Pop @ 2005-08-02  9:11 UTC (permalink / raw)
  To: Elimar Riesebieter
  Cc: Andrew Morton, Linux Kernel Mailing List, debian-powerpc

Le mardi 02 août 2005 à 09:17 +0200, Elimar Riesebieter a écrit :

> > [ fnkey not working on Apple Powerbooks in -mm tree ]

> > Hmm, there seem to be a lot of divergence between -mm and linus tree
> > here, and this may be the cause of the malfunction. 
> > 
> > Let me do some tests tomorrow with an -mm kernel and see if I find
> > something.

Ok, the -mm tree contains some other input patches which conflict with
my Fn key patch
(input-quirk-for-the-fn-key-on-powerbooks-with-an-usb.patch). The
attached patch makes it work again.

Andrew, please apply.

Stelian.

Newer input patches added a HID_UP_LOGIVENDOR switch case which disrupts
the Apple Powerbooks Fn key patch. Moving a few lines of code from the
'default' switch case to the new location makes it work again.

Signed-off-by: Stelian Pop <stelian@popies.net>

Index: linux-2.6.12-rc4-mm1/drivers/usb/input/hid-input.c
===================================================================
--- linux-2.6.12-rc4-mm1.orig/drivers/usb/input/hid-input.c	2005-08-02 09:44:28.000000000 +0200
+++ linux-2.6.12-rc4-mm1/drivers/usb/input/hid-input.c	2005-08-02 10:57:13.000000000 +0200
@@ -323,6 +323,11 @@
 
 		case HID_UP_MSVENDOR:
 		case HID_UP_LOGIVENDOR:
+
+			if ((device->quirks & HID_QUIRK_POWERBOOK_FN_BUTTON) && (usage->hid == 0x00ff0003)) {
+				map_key_clear(KEY_RIGHTCTRL);
+				break;
+			}
 			goto ignore;
 
 		case HID_UP_LOGIVENDOR2: /* Reported on Logitech Ultra X Media Remote */
@@ -376,10 +381,7 @@
 
 		default:
 		unknown:
-			if ((device->quirks & HID_QUIRK_POWERBOOK_FN_BUTTON) && (usage->hid == 0x00ff0003)) {
-				map_key_clear(KEY_RIGHTCTRL);
-				break;
-			}
+
 			if (field->report_size == 1) {
 				if (field->report->type == HID_OUTPUT_REPORT) {
 					map_led(LED_MISC);
 

-- 
Stelian Pop <stelian@popies.net>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-02  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20050731190531.GA5629@samweis.home.lxtec.de>
     [not found] ` <1122838500.17880.16.camel@deep-space-9.dsnet>
     [not found]   ` <20050731200148.GA20179@frodo.home.lxtec.de>
     [not found]     ` <1122844800.17880.19.camel@deep-space-9.dsnet>
     [not found]       ` <20050731214308.GA4346@samweis.home.lxtec.de>
     [not found]         ` <1122847027.17880.47.camel@deep-space-9.dsnet>
     [not found]           ` <20050801171309.GA4624@samweis.home.lxtec.de>
     [not found]             ` <1122921231.22294.5.camel@deep-space-9.dsnet>
     [not found]               ` <20050801185529.GB16623@samweis.home.lxtec.de>
     [not found]                 ` <1122929399.22294.27.camel@deep-space-9.dsnet>
     [not found]                   ` <20050802071736.GA22055@baumbart.home.lxtec.de>
2005-08-02  9:11                     ` Fn key and 2.6.12-rc4 Stelian Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®