Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755439AbZLCRrp (ORCPT ); Thu, 3 Dec 2009 12:47:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752863AbZLCRro (ORCPT ); Thu, 3 Dec 2009 12:47:44 -0500 Received: from khc.piap.pl ([195.187.100.11]:42446 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbZLCRrn (ORCPT ); Thu, 3 Dec 2009 12:47:43 -0500 From: Krzysztof Halasa To: Gerd Hoffmann Cc: Mauro Carvalho Chehab , Christoph Bartelmus , awalls@radix.net, dmitry.torokhov@gmail.com, j@jannau.net, jarod@redhat.com, jarod@wilsonet.com, jonsmirl@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, superm1@ubuntu.com Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? References: <4B14EDE3.5050201@redhat.com> <4B1524DD.3080708@redhat.com> <4B153617.8070608@redhat.com> Date: Thu, 03 Dec 2009 18:47:46 +0100 In-Reply-To: <4B153617.8070608@redhat.com> (Gerd Hoffmann's message of "Tue, 01 Dec 2009 16:28:23 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1507 Lines: 39 Gerd Hoffmann writes: > I'd pick a more descriptive name like 'bundled_remote'. > Maybe an additional attribute could say which protocol the bundled > remote speaks (rc5, ...), so userspace could do something sensible by > default even if it has no data about the bundled remote. This is problematic since there can be more that one remote bundled. If we export the sensor (tuner etc) name, userspace can make some decision (or ask the user etc). The protocol alone won't help - the user will have to teach the system about the remote anyway. This should be made trivial at least for common protocols, though. > Name them by the hardware they are bundled with should work reasonable > well. I guess udev can look at parent PCI vendor/device and subsystem vendor/device for most PCI cases. Ditto with USB. For generic stuff like TSOP* coupled with a resistor and connected to RS232 port, we can't guess anyway. > We also could also provide a list of possible remotes directly via > sysfs The kernel has no way to _know_ this information. The policy is better handled in userland. >> Anyway, we shouldn't postpone lirc drivers addition due to that. Actually merging lirc is a prerequisite for a number of changes. -- Krzysztof Halasa -- 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/