From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from unicorn.mansr.com ([81.2.72.234]:52736 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbdISOcW (ORCPT ); Tue, 19 Sep 2017 10:32:22 -0400 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Marc Gonzalez Cc: Rob Herring , Mark Rutland , Sean Young , Mauro Carvalho Chehab , linux-media , Thibaud Cornic , Mason Subject: Re: [PATCH v1] media: rc: Add driver for tango IR decoder References: <569e41a9-57c9-3d6f-4157-dffb23f997c6@sigmadesigns.com> Date: Tue, 19 Sep 2017 15:32:17 +0100 In-Reply-To: (Marc Gonzalez's message of "Tue, 19 Sep 2017 14:43:17 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-media-owner@vger.kernel.org List-ID: Marc Gonzalez writes: > + Rob & Mark for the DT bindings question. > > On 19/09/2017 14:21, Måns Rullgård wrote: > >> Marc Gonzalez writes: >> >>> On 18/09/2017 17:33, Måns Rullgård wrote: >>> >>>> What have you changed compared to my original code? >>> >>> I forgot to mention one change you may not approve of, so we should >>> probably discuss it. >>> >>> Your driver supported an optional DT property "linux,rc-map-name" >>> to override the RC_MAP_EMPTY map. Since the IR decoder supports >>> multiple protocols, I found it odd to specify a scancode map in >>> something as low-level as the device tree. >>> >>> I saw only one board using that property: >>> $ git grep "linux,rc-map-name" arch/ >>> arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts: linux,rc-map-name = "rc-geekbox"; >>> >>> So I removed support for "linux,rc-map-name" and used ir-keytable >>> to load a given map from user-space, depending on which RC I use. >>> >>> Mans, Sean, what do you think? >> >> The property is documented as common for IR receivers although only a >> few drivers seem to actually implement the feature. Since driver >> support is trivial, I see no reason to skip it. Presumably someone >> had a use for it, or it wouldn't have been added. > > I do not dispute the usefulness of the "linux,rc-map-name" property > in general, e.g. for boards that support a single remote control. > > I am arguing that the person writing the device tree has no way of > knowing which rc-map a given user will be using, because it depends > on the actual remote control being used. Most products (DVD players, TVs, etc) are only intended for use with the supplied remote control. -- Måns Rullgård