Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933843AbWLIGyN (ORCPT ); Sat, 9 Dec 2006 01:54:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933840AbWLIGyN (ORCPT ); Sat, 9 Dec 2006 01:54:13 -0500 Received: from gotimeevents.com ([216.18.1.209]:49911 "EHLO curly.nips.cc" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S933843AbWLIGyM (ORCPT ); Sat, 9 Dec 2006 01:54:12 -0500 Subject: [PATCH] usbhid quirks for macbook(pro) (was: Re: Fwd: Re: [linux-usb-devel] usb initialization order (usbhid vs. appletouch)) From: Soeren Sonnenburg To: Joseph Fannin Cc: Greg Kroah-Hartman , Oliver Neukum , Sergey Vlasov , linux-kernel@vger.kernel.org, linux-usb-devel@lists.sourceforge.net In-Reply-To: <20061030101202.GB9265@nineveh.rivenstone.net> References: <1161856438.5214.2.camel@no.intranet.wo.rk> <1162054576.3769.15.camel@localhost> <200610282043.59106.oliver@neukum.org> <200610282055.29423.oliver@neukum.name> <1162067266.4044.2.camel@localhost> <20061030101202.GB9265@nineveh.rivenstone.net> Content-Type: multipart/mixed; boundary="=-L1ld1z07kIAtAZ0ajh47" Date: Fri, 08 Dec 2006 18:19:27 +0100 Message-Id: <1165598367.19187.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8324 Lines: 136 --=-L1ld1z07kIAtAZ0ajh47 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, 2006-10-30 at 05:12 -0500, Joseph Fannin wrote: > On Sat, Oct 28, 2006 at 10:27:46PM +0200, Soeren Sonnenburg wrote: > > On Sat, 2006-10-28 at 20:55 +0200, Oliver Neukum wrote: > > > > From: Sergey Vlasov > > > > Subject: usbhid: Add HID_QUIRK_IGNORE_MOUSE flag > > > > > > > > Some HID devices by Apple have both keyboard and mouse interfaces; the > > > > keyboard interface is handled by usbhid, but the mouse (really > > > > touchpad) interface must be handled by the separate 'appletouch' > > > > driver. Using HID_QUIRK_IGNORE will make hiddev ignore both > > > > interfaces, therefore a new quirk flag to ignore only the mouse > > > > interface is required. > > The appletouch driver doesn't work properly on the MacBook > (non-Pro). It claims the device, and sort of functions, but is > basically unusable. > > If this goes in, and blacklists the MacBook touchpad too, Macbook > users will be unhappy. I think the MacBook and the -Pro use the same > IDs, though, which makes a problem for this patch until appletouch is > fixed on MacBooks. ok, this patch was now in the mactel svn repository since about a month and I've never ever seen a report about it failing. Also I asked on the mailinglist for anyone having problems with that and got no answer, execpt Joseph, the problem you have been seeing might have been that one: http://www.mail-archive.com/mactel-linux-devel@lists.sourceforge.net/msg00129.html I would therefore hope it can be applied and thus appear in .20. I am attaching the version that is now in mactel-svn (which also includes geyser4 support). Soeren -- Sometimes, there's a moment as you're waking, when you become aware of the real world around you, but you're still dreaming. --=-L1ld1z07kIAtAZ0ajh47 Content-Disposition: attachment; filename=usbhid.patch Content-Type: text/x-patch; name=usbhid.patch; charset=ISO-8859-15 Content-Transfer-Encoding: base64 ZGlmZiAtdU5yIGxpbnV4LTIuNi4xOS9kcml2ZXJzL3VzYi9pbnB1dC9oaWQtY29yZS5jIGxpbnV4 LTIuNi4xOS1tYWN0ZWwvZHJpdmVycy91c2IvaW5wdXQvaGlkLWNvcmUuYw0KLS0tIGxpbnV4LTIu Ni4xOS9kcml2ZXJzL3VzYi9pbnB1dC9oaWQtY29yZS5jCTIwMDYtMTEtMjkgMjI6NTc6MzcuMDAw MDAwMDAwICswMTAwDQorKysgbGludXgtMi42LjE5LW1hY3RlbC9kcml2ZXJzL3VzYi9pbnB1dC9o aWQtY29yZS5jCTIwMDYtMTEtMzAgMDk6MjA6NDkuMDAwMDAwMDAwICswMTAwDQpAQCAtMTYyNyw2 ICsxNjI3LDE2IEBADQogDQogI2RlZmluZSBVU0JfVkVORE9SX0lEX0FQUExFCQkweDA1YWMNCiAj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ANCisjZGVmaW5lIEhJRF9RVUlSS19JR05PUkVfTU9VU0UJCQkweDAwMDEwMDAwDQogDQog LyoNCiAgKiBUaGlzIGlzIHRoZSBnbG9iYWwgZW52aXJvbm1lbnQgb2YgdGhlIHBhcnNlci4gVGhp cyBpbmZvcm1hdGlvbiBpcw0K --=-L1ld1z07kIAtAZ0ajh47-- - 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/