From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tino Keitel Subject: Re: [PATCH] Input: add appleir USB driver Date: Fri, 16 May 2008 07:44:11 +0200 Message-ID: <20080516054411.GA20503@dose.home.local> References: <20080514221519.GA6575@kroah.com> <20080515132108.GA9327@dose.home.local> <20080515094212.ZZRA012@mailhub.coreip.homeip.net> <20080515184034.GB15231@kroah.com> <20080515205959.GA11683@dose.home.local> <20080515211117.GA32573@kroah.com> <20080515232733.GA16655@dose.home.local> <20080516023236.GB17375@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eazy.amigager.de ([213.239.192.238]:47081 "EHLO eazy.amigager.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbYEPFnY (ORCPT ); Fri, 16 May 2008 01:43:24 -0400 Content-Disposition: inline In-Reply-To: <20080516023236.GB17375@kroah.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Greg KH Cc: Dmitry Torokhov , jkosina@suse.cz, linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, May 15, 2008 at 19:32:36 -0700, Greg KH wrote: > On Fri, May 16, 2008 at 01:27:33AM +0200, Tino Keitel wrote: [...] > > When the appleir kernel driver is used, the IR device acts as in input > > device, not as a HID device. LIRC has to be configured to use its > > dev/input driver in this case. This is a generic driver to use any > > input device as lirc device. The dev/input driver relies on the key > > events that are generated by the kernel. > > Hm, I just got a private email (for some odd reason) saying this driver > isn't needed at all, they just add a hid quirk line. Maybe this email came from a person who uses a distro kernel that already included the appleir driver? IIRC at least Ubuntu did that once. If not, I'd be interested in the detailed setup. > Now why that hid quirk line hadn't been added for the year or so that > the person knew about it, sure is odd to me... There was a quirk line in the past. It was introduced by accident with 2.6.22 with commit a417a21e10831bca695b4ba9c74f4ddf5a95ac06. The commit message only mentions keyboard and mouse devices, so I think the quirk for the IR device was unintended. Then I wasted several hours when I tried to use the macmini LIRC driver with 2.6.22. The HID device that I saw came from my LCD, not from the IR device, and I wasn't aware of the HID ignore quirk as the kernel didn't mention it when the device was detected. That's why I also suggested that the kernel should be more verbose about such ignore quirks and blacklists. In the end I found that quirk an requested to remove it. This was done in 2.6.23-rc2. Regards, Tino