Re: [PATCH 02/18] lirc serial port receiver/transmitter device driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarod Wilson
Date: Wednesday, September 10, 2008 - 10:40 am

On Tuesday 09 September 2008 12:14:22 Jonathan Corbet wrote:

Bleah. I believe these get passed in when building lirc userspace and drivers 
together, when manually selected the specific type of serial receiver you have 
in lirc's menu-driven configuration tool thingy...

In other words, they do us absolutely no good here. We just build for the 
default type (LIRC_HOMEBREW), and users can override the type as necessary via 
the 'type' module parameter. I'll nuke that chunk.


Indeed. Done.


Sounds plausible, will look into it. Of course, this partially hinges on the 
USE_RDTSC bits, more comments just a little ways down...


Probably. Will see about using those instead.


Hrm... So at some point in the past, there was an "#if defined(rdtscl)" in the 
lirc_serial.c code that triggered USE_RDTSC being defined. At the moment, 
there's nothing defining it (I probably overzealously nuked it during clean-
up), so we're not even touching the above code. However, this is supposed to 
be the "better" code path wrt producing a reliable waveform, at least on 
platforms with rdtscl... Will have to do some investigating... This actually 
affects whether or not we bother with hrtimers as suggested above too, as 
LIRC_SERIAL_TRANSMITTER_LATENCY is not used at all in the USE_RDTSC case.


Yeah, looks like it. Done.


Yeah, working on implementing locking right now.


We should probably try to make sure the port actually exists, but I don't 
think there's a whole lot (if anything) we can do as far as verifying the 
device itself.


Yeah, looks like it.


Going to let the duplication be for the moment, since I don't know the history 
behind why there's duplication, and there are enough other mountains to climb 
first... :)


Will do.

-- 
Jarod Wilson
jarod@redhat.com

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/18] linux infrared remote control drivers, Jarod Wilson, (Mon Sep 8, 9:05 pm)
[PATCH 01/18] lirc core device driver infrastructure, Jarod Wilson, (Mon Sep 8, 9:05 pm)
[PATCH 05/18] lirc driver for i2c-based IR receivers, Jarod Wilson, (Mon Sep 8, 9:05 pm)
[PATCH 15/18] lirc driver for the SIR IrDA port, Jarod Wilson, (Mon Sep 8, 9:06 pm)
Re: [PATCH 0/18] linux infrared remote control drivers, Chris Wedgwood, (Mon Sep 8, 9:36 pm)
Re: [PATCH 0/18] linux infrared remote control drivers, Alexey Dobriyan, (Tue Sep 9, 12:06 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Sebastian Siewior, (Tue Sep 9, 12:40 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Janne Grunau, (Tue Sep 9, 1:32 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Sebastian Siewior, (Tue Sep 9, 5:33 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Christoph Hellwig, (Tue Sep 9, 5:46 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Hellwig, (Tue Sep 9, 6:01 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Stefan Richter, (Tue Sep 9, 6:27 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Jarod Wilson, (Tue Sep 9, 8:23 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Jonathan Corbet, (Tue Sep 9, 8:33 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Lennart Sorensen, (Tue Sep 9, 11:27 am)
Re: [PATCH 0/18] linux infrared remote control drivers, Jarod Wilson, (Tue Sep 9, 11:34 am)
Re: [PATCH 02/18] lirc serial port receiver/transmitter de ..., Stefan Lippers-Hollmann, (Tue Sep 9, 12:51 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Hellwig, (Wed Sep 10, 5:29 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Dmitry Torokhov, (Wed Sep 10, 6:08 am)
Re: [PATCH 06/18] lirc driver for the ATI USB RF remote re ..., Christoph Hellwig, (Wed Sep 10, 6:14 am)
Re: [PATCH 06/18] lirc driver for the ATI USB RF remote re ..., Christoph Hellwig, (Wed Sep 10, 7:19 am)
Re: [PATCH 05/18] lirc driver for i2c-based IR receivers, Jonathan Corbet, (Wed Sep 10, 8:42 am)
Re: [PATCH 02/18] lirc serial port receiver/transmitter de ..., Jarod Wilson, (Wed Sep 10, 10:40 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Gerd Hoffmann, (Thu Sep 11, 1:47 am)
Re: [PATCH 09/18] lirc driver for the Streamzap PC Receiver, Jonathan Corbet, (Thu Sep 11, 8:22 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Thu Sep 11, 9:41 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Thu Sep 11, 11:03 am)
Re: [PATCH 07/18] lirc driver for the CommandIR USB Transc ..., Christoph Bartelmus, (Thu Sep 11, 11:24 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Thu Sep 11, 11:30 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Jarod Wilson, (Thu Sep 11, 12:09 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Janne Grunau, (Thu Sep 11, 12:18 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Maxim Levitsky, (Thu Sep 11, 2:28 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Dmitry Torokhov, (Thu Sep 11, 9:44 pm)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Hellwig, (Fri Sep 12, 1:33 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Sat Sep 13, 12:20 am)
Re: [PATCH 01/18] lirc core device driver infrastructure, Christoph Bartelmus, (Sat Sep 13, 12:21 am)