From: "David Härdeman" <david@hardeman.nu>
To: Jarod Wilson <jarod@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
linux-media@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH 3/4] ir-core: move decoding state to ir_raw_event_ctrl
Date: Wed, 9 Jun 2010 19:56:21 +0200 [thread overview]
Message-ID: <20100609175621.GA19620@hardeman.nu> (raw)
In-Reply-To: <20100609132908.GM16638@redhat.com>
On Wed, Jun 09, 2010 at 09:29:08AM -0400, Jarod Wilson wrote:
> On Tue, Jun 08, 2010 at 11:46:36PM -0400, Jarod Wilson wrote:
> > On Tue, Jun 8, 2010 at 1:50 PM, David Härdeman <david@hardeman.nu> wrote:
> > > b) Mauro mentioned in <4BDF28C0.4060102@redhat.com> that:
> > >
> > > I liked the idea of your redesign, but I didn't like the removal
> > > of a per-decoder sysfs entry. As already discussed, there are
> > > cases where we'll need a per-decoder sysfs entry (lirc_dev is
> > > probably one of those cases - also Jarod's imon driver is
> > > currently implementing a modprobe parameter that needs to be
> > > moved to the driver).
> > >
> > > could you please confirm if your lirc and/or imon drivers would be
> > > negatively affected by the proposed patches?
> >
> > Will do so once I get them wedged in on top.
>
> Got it all merged and compiling, but not yet runtime tested. Compiling
> alone sheds some light on things though...
>
> So this definitely negatively impacts my ir-core-to-lirc_dev
> (ir-lirc-codec.c) bridge driver, as it was doing the lirc_dev device
> registration work in its register function. However, if (after your
> patchset) we add a new pair of callbacks replacing raw_register and
> raw_unregister, which are optional, that work could be done there instead,
> so I don't think this is an insurmountable obstacle for the lirc bits.
While I'm not sure exactly what callbacks you're suggesting, it still
sounds like the callbacks would have the exact same problems that the
current code has (i.e. the decoder will be blissfully unaware of
hardware which exists before the decoder is loaded). Right?
> As for the imon driver, the modprobe parameter in question (iirc) was
> already removed from the driver, as its functionality is replaced by
> implementing a change_protocol callback. However, there's a request to
> add it (or something like it) back to the driver to allow disabling the
> IR part altogether, and there are a few other modparams that might be
> better suited as sysfs entries. However, its actually not relevant to the
> case of registering raw protocol handlers, as the imon devices do their
> decoding in hardware. I can see the possibility for protocol-specific
> knobs in sysfs though. But I think the same optional callbacks I'd use to
> keep the lirc bits working could also be used for this. Can't think of a
> good name for these yet, probably need more coffee first... ;)
But those sysfs entries wouldn't be
per-decoder-per-hardware-device....they'd just be
per-hardware-device...right?
--
David Härdeman
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-06-09 17:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-24 21:13 [PATCH 0/4] ir-core sysfs protocol selection simplification David Härdeman
2010-04-24 21:14 ` [PATCH 1/4] ir-core: remove IR_TYPE_PD David Härdeman
2010-04-24 21:14 ` [PATCH 2/4] ir-core: centralize sysfs raw decoder enabling/disabling David Härdeman
2010-05-03 19:49 ` Mauro Carvalho Chehab
2010-06-07 18:48 ` David Härdeman
2010-04-24 21:14 ` [PATCH 3/4] ir-core: move decoding state to ir_raw_event_ctrl David Härdeman
2010-05-03 20:00 ` Mauro Carvalho Chehab
2010-06-07 19:00 ` David Härdeman
2010-06-07 20:15 ` Jarod Wilson
2010-06-08 17:50 ` David Härdeman
2010-06-09 3:46 ` Jarod Wilson
2010-06-09 13:29 ` Jarod Wilson
2010-06-09 17:56 ` David Härdeman [this message]
2010-06-09 18:15 ` Jarod Wilson
2010-06-10 1:25 ` Jarod Wilson
2010-06-13 20:29 ` David Härdeman
2010-06-16 20:04 ` Jarod Wilson
2010-06-16 20:41 ` Jarod Wilson
2010-06-17 12:14 ` Andy Walls
2010-06-17 15:11 ` Jarod Wilson
2010-06-21 0:47 ` Andy Walls
2010-06-21 3:51 ` Jarod Wilson
2010-06-21 11:04 ` Andy Walls
2010-07-06 17:12 ` Jarod Wilson
2010-04-24 21:14 ` [PATCH 4/4] ir-core: remove ir-functions usage from cx231xx David Härdeman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100609175621.GA19620@hardeman.nu \
--to=david@hardeman.nu \
--cc=jarod@redhat.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).