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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jarod Wilson <jwilson@...>
Cc: <linux-kernel@...>, Jarod Wilson <jwilson@...>, Jarod Wilson <jarod@...>, Janne Grunau <j@...>, Christoph Bartelmus <lirc@...>
Date: Tuesday, September 9, 2008 - 12:14 pm

> +config LIRC_SERIAL

What receivers might these be?  Do any actually exist?


So where do all these LIRC_SERIAL_* macros come from?  I can't really tell
what this bunch of ifdeffery is doing or how one might influence it.


It would be really nice to use the .field=value structure initialization
conventions here.


This is a little scary.  Maybe hrtimers would be a better way of handling
your timing issues?


This all looks like a reimplementation of ioport_map() and the associated
ioread*() and iowrite*() functions...?


This looks like a hard busy wait, without even an occasional, polite,
cpu_relax() call.  There's got to be a better way?

The i2c code has the result of a lot of bit-banging work, I wonder if
there's something there which could be helpful here.


That should just be IRQ_NONE, no?


That won't help you if an interrupt is handled by another processor.  This
needs proper locking, methinks.

Nothing in this function does anything to assure itself that the port
actually exists and is the right kind of hardware.  Maybe that can't really
be done with this kind of device?

 ...

msleep(), maybe?


OK, so set_use_inc() really is just an open() function.  It still seems
like a strange duplication.

Again, local_irq_save() seems insufficient here.  You need a lock to
serialize access to the hardware.

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

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