All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Härdeman" <david@hardeman.nu>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	jbarnes@virtuousgeek.org, akpm@linux-foundation.org,
	dmitry.torokhov@gmail.com
Subject: Re: [patch 0/2] Winbond IR Driver - v2
Date: Sun, 16 Aug 2009 20:43:50 +0200	[thread overview]
Message-ID: <20090816184350.GA28497@hardeman.nu> (raw)
In-Reply-To: <1250374211.1928.27.camel@maxim-laptop>

On Sun, Aug 16, 2009 at 01:10:11AM +0300, Maxim Levitsky wrote:
>On Sat, 2009-08-15 at 22:10 +0200, David Härdeman wrote:
>> On Sat, Aug 15, 2009 at 06:02:27AM +0300, Maxim Levitsky wrote:
>>>
>>> Then why not to implement lirc driver?
>>
>> That's a fair question, but I'm afraid you're putting the cart before
>> the horse.
>
>No, I just want to write the driver that fully exposes the hardware. I
>don't care if it has to be outside or not.

That's not a very user-friendly sentiment. The entire idea is to extend 
the input subsystem so that it fully exposes the hardware *and* gives 
users the benefit of in-kernel drivers.

>> The question is not why anyone would want to write an in-kernel driver
>> but rather why anyone would want to write an out-of-kernel driver.
>>
>> There have been repeated attempts to get LIRC merged with the kernel,
>> and the feedback has been pretty consistent - make it part of the input
>> subsystem.
>>
>> I have written the driver for theo input system and it limits the driver
>> somewhat. I am working on extending the input system to accomodate IR
>> drivers (see the discussion of EV_IR on the linux-input list).
>
>The EV_IR thing is that he attempts to put all IR decoding in kernel,
>and on top of that create a configfs config system.

I never proposed a configfs system. I only proposed a part of Jon 
Smirl's EV_IR functionality. I think the configfs system as well as the 
in-kernel protocol _en_coders are overengineering.

>I first thought it would be nice, but then realized that this is really
>bad idea.
>Currently LIRC has very oiled system for decoding pretty much every
>remote that exist. It can cope with all kind of troubles, including not
>very accurate receivers.

I think you've misunderstood my EV_IR suggestion on the linux-input 
list. Part of that proposal is to allow drivers to generate IR_RAW 
timing events (if asked to do so via an ioctl), then you could continue 
to use lirc with some minimal changes to the lirc daemon while still 
getting the benefits of in-kernel drivers. I have a hard time seeing 
what would be wrong with that? Whether the input subsystem *also* 
includes (optional) IR decoding or not should not matter to lirc fans as 
long as it includes some kind of IR_RAW support (which it does both in 
Jon's proposal and in mine).

>On top of that there are pure userspace devices, like a IR diode
>connected to soundcard. It would be nice to do all the raw signal
>decoding in one place. Once signal is decoded, lirc forwards the input
>signal to the kernel via uinput, so it is a part of input system.

That's a red herring, there is always going to be esoteric DIY hardware, 
and no matter which API is used in the kernel, that hardware can always 
use user-space drivers.

>The way kernel hands in the raw IR data to lirc doesn't matter much. It
>is really just a queue of numbers. It can be forced into input system,
>but there is really no need for that.

There really is a need if you want in-kernel drivers.

>> Feel free to help me out in implementing that API, and porting LIRC
>> drivers, and all the benefits of in-kernel drivers will flow from that
>> work.
>
>This isn't a bad idea.

Good, we agree on this point, which is the most important one. IR_RAW 
should be enough for the lirc daemon, right? So let's make sure 
something like that gets added to the input subsystem and we can take it 
from there...

>>>This driver as I understand is a driver for single remote shipped with
>>>the notebook.
>>
>> It's a driver for a winbond chipset shipped with many Intel desktop
>> "media" motherboards (DP35DP, DG33TL, DX388T, DX488T2, DP455G, DG45ID
>> and DG45FC are the ones I'm aware of).
>
>But it won't work with my JVC remote?....

Not sure what you JVC remote has to do with the Intel mainboards that 
include the WPCD376I chipset.

Anyway, based on past experience of JVC remotes I'm guessing that your 
remote uses some version of the NEC protocol, in that case it will be 
supported...and IR_RAW (or something similar) will be supported if it is 
accepted by the input subsystem maintainers so you will additionally be 
able to use that air conditioning remote which implements a completely 
wonky IR protocol together with lirc - if you want to...

Regards,
David Härdeman

(trimmed some people of the CC list which are unlikely to be interested 
in this discussion, I hope Dmitry will speak up soon).


WARNING: multiple messages have this Message-ID (diff)
From: "David Härdeman" <david@hardeman.nu>
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	jbarnes@virtuousgeek.org, akpm@linux-foundation.org,
	dmitry.torokhov@gmail.com
Subject: Re: [patch 0/2] Winbond IR Driver - v2
Date: Sun, 16 Aug 2009 20:43:50 +0200	[thread overview]
Message-ID: <20090816184350.GA28497@hardeman.nu> (raw)
In-Reply-To: <1250374211.1928.27.camel@maxim-laptop>

On Sun, Aug 16, 2009 at 01:10:11AM +0300, Maxim Levitsky wrote:
>On Sat, 2009-08-15 at 22:10 +0200, David Härdeman wrote:
>> On Sat, Aug 15, 2009 at 06:02:27AM +0300, Maxim Levitsky wrote:
>>>
>>> Then why not to implement lirc driver?
>>
>> That's a fair question, but I'm afraid you're putting the cart before
>> the horse.
>
>No, I just want to write the driver that fully exposes the hardware. I
>don't care if it has to be outside or not.

That's not a very user-friendly sentiment. The entire idea is to extend 
the input subsystem so that it fully exposes the hardware *and* gives 
users the benefit of in-kernel drivers.

>> The question is not why anyone would want to write an in-kernel driver
>> but rather why anyone would want to write an out-of-kernel driver.
>>
>> There have been repeated attempts to get LIRC merged with the kernel,
>> and the feedback has been pretty consistent - make it part of the input
>> subsystem.
>>
>> I have written the driver for theo input system and it limits the driver
>> somewhat. I am working on extending the input system to accomodate IR
>> drivers (see the discussion of EV_IR on the linux-input list).
>
>The EV_IR thing is that he attempts to put all IR decoding in kernel,
>and on top of that create a configfs config system.

I never proposed a configfs system. I only proposed a part of Jon 
Smirl's EV_IR functionality. I think the configfs system as well as the 
in-kernel protocol _en_coders are overengineering.

>I first thought it would be nice, but then realized that this is really
>bad idea.
>Currently LIRC has very oiled system for decoding pretty much every
>remote that exist. It can cope with all kind of troubles, including not
>very accurate receivers.

I think you've misunderstood my EV_IR suggestion on the linux-input 
list. Part of that proposal is to allow drivers to generate IR_RAW 
timing events (if asked to do so via an ioctl), then you could continue 
to use lirc with some minimal changes to the lirc daemon while still 
getting the benefits of in-kernel drivers. I have a hard time seeing 
what would be wrong with that? Whether the input subsystem *also* 
includes (optional) IR decoding or not should not matter to lirc fans as 
long as it includes some kind of IR_RAW support (which it does both in 
Jon's proposal and in mine).

>On top of that there are pure userspace devices, like a IR diode
>connected to soundcard. It would be nice to do all the raw signal
>decoding in one place. Once signal is decoded, lirc forwards the input
>signal to the kernel via uinput, so it is a part of input system.

That's a red herring, there is always going to be esoteric DIY hardware, 
and no matter which API is used in the kernel, that hardware can always 
use user-space drivers.

>The way kernel hands in the raw IR data to lirc doesn't matter much. It
>is really just a queue of numbers. It can be forced into input system,
>but there is really no need for that.

There really is a need if you want in-kernel drivers.

>> Feel free to help me out in implementing that API, and porting LIRC
>> drivers, and all the benefits of in-kernel drivers will flow from that
>> work.
>
>This isn't a bad idea.

Good, we agree on this point, which is the most important one. IR_RAW 
should be enough for the lirc daemon, right? So let's make sure 
something like that gets added to the input subsystem and we can take it 
from there...

>>>This driver as I understand is a driver for single remote shipped with
>>>the notebook.
>>
>> It's a driver for a winbond chipset shipped with many Intel desktop
>> "media" motherboards (DP35DP, DG33TL, DX388T, DX488T2, DP455G, DG45ID
>> and DG45FC are the ones I'm aware of).
>
>But it won't work with my JVC remote?....

Not sure what you JVC remote has to do with the Intel mainboards that 
include the WPCD376I chipset.

Anyway, based on past experience of JVC remotes I'm guessing that your 
remote uses some version of the NEC protocol, in that case it will be 
supported...and IR_RAW (or something similar) will be supported if it is 
accepted by the input subsystem maintainers so you will additionally be 
able to use that air conditioning remote which implements a completely 
wonky IR protocol together with lirc - if you want to...

Regards,
David Härdeman

(trimmed some people of the CC list which are unlikely to be interested 
in this discussion, I hope Dmitry will speak up soon).

--
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

  reply	other threads:[~2009-08-16 18:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-09  9:56 [patch 0/2] Winbond IR Driver - v2 david
2009-08-09  9:56 ` david
2009-08-09  9:56 ` [patch 1/2] Add a shutdown method to pnp drivers david
2009-08-09  9:56   ` david
2009-08-09  9:56 ` [patch 2/2] Add a driver for the Winbond WPCD376I Consumer IR hardware david
2009-08-09  9:56   ` david
2009-08-10 15:39   ` Bjorn Helgaas
2009-08-13  6:58   ` Dmitry Torokhov
2009-08-13  9:34     ` David Härdeman
2009-08-13  9:34       ` David Härdeman
2009-08-13 15:56       ` Dmitry Torokhov
2009-08-13 15:56         ` Dmitry Torokhov
2009-08-13 17:58         ` David Härdeman
2009-08-13 17:58           ` David Härdeman
2009-08-13 17:14     ` David Härdeman
2009-08-13 17:14       ` David Härdeman
2009-08-15  3:02 ` [patch 0/2] Winbond IR Driver - v2 Maxim Levitsky
2009-08-15 20:10   ` David Härdeman
2009-08-15 20:10     ` David Härdeman
2009-08-15 22:10     ` Maxim Levitsky
2009-08-15 22:10       ` Maxim Levitsky
2009-08-16 18:43       ` David Härdeman [this message]
2009-08-16 18:43         ` David Härdeman
2009-08-17  3:56         ` Maxim Levitsky
2009-08-17  3:56           ` Maxim Levitsky
2009-08-11 16:26 David Härdeman
2009-08-11 16:26 ` 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=20090816184350.GA28497@hardeman.nu \
    --to=david@hardeman.nu \
    --cc=akpm@linux-foundation.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jbarnes@virtuousgeek.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maximlevitsky@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.