Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756098AbYFNMTz (ORCPT ); Sat, 14 Jun 2008 08:19:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752925AbYFNMTo (ORCPT ); Sat, 14 Jun 2008 08:19:44 -0400 Received: from senator.holtmann.net ([87.106.208.187]:34492 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752528AbYFNMTm (ORCPT ); Sat, 14 Jun 2008 08:19:42 -0400 Subject: Re: [PATCH] [RESEND] fix HID quirks for aluminium apple wireless keyboards From: Marcel Holtmann To: Paul Collins Cc: jkosina@suse.cz, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org In-Reply-To: <87tzfwiguc.fsf@burly.wgtn.ondioline.org> References: <87iqweltzo.fsf@burly.wgtn.ondioline.org> <874p7ylsj0.fsf@burly.wgtn.ondioline.org> <1213301289.17870.72.camel@violet.holtmann.net> <87tzfwiguc.fsf@burly.wgtn.ondioline.org> Content-Type: text/plain Date: Sat, 14 Jun 2008 14:22:40 +0200 Message-Id: <1213446160.17870.145.camel@violet.holtmann.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2045 Lines: 53 Hi Paul, > >> I also took the liberty of adding defines for the vendor and for the > >> existing Mighty Mouse quirk. > > > > I prefer not to do this. I don't see any benefit or readability coming > > out of it. Leave it as it is. Add the numeric ids and then a line on top > > of it describing the devices. > > Here is a new version of the patch that just adds the entries to > hidp_blacklist using your suggested style. I'm leaving the USB HID's > table alone based on Phil Endecott's remarks regarding HID proxy mode, > so now this patch only touches Bluetooth code. > > > bluetooth: fix Fn on Apple Wireless Keyboard > > Enable the HID quirks for Apple Wireless Keyboards, based on the quirk > table entries in the USB HID. With this patch applied the Fn key on my > keyboard now functions as expected. > > diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c > index 519cdb9..62f174a 100644 > --- a/net/bluetooth/hidp/core.c > +++ b/net/bluetooth/hidp/core.c > @@ -676,6 +676,12 @@ static const struct { > __u16 idProduct; > unsigned quirks; > } hidp_blacklist[] = { > + /* Apple Wireless Keyboard, ANSI layout */ > + { 0x05ac, 0x022c, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN }, > + /* Apple Wireless Keyboard, ISO layout */ > + { 0x05ac, 0x022d, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, > + /* Apple Wireless Keyboard, JIS layout */ > + { 0x05ac, 0x022e, HID_QUIRK_APPLE_NUMLOCK_EMULATION | HID_QUIRK_APPLE_HAS_FN }, > /* Apple wireless Mighty Mouse */ > { 0x05ac, 0x030c, HID_QUIRK_MIGHTYMOUSE | HID_QUIRK_INVERT_HWHEEL }, Acked-by: Marcel Holtmann However depending on if Jiri's changes for the HID bus are ready, this patch might become obsolete. Regards Marcel -- 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/