Re: [PATCH 05/10] ldisc: new dcd_change() method for line disciplines.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rodolfo Giometti
Date: Tuesday, August 19, 2008 - 4:05 pm

On Tue, Aug 19, 2008 at 11:38:57PM +0100, Alan Cox wrote:

If you look at patch 9
(0009-PPS-low-level-IRQ-timestamps-recording.patch) you can see that
we add a (dirty?) trick to improve PPS precision a lot: we record all
IRQ timestamps into static array and then we return those values
instead of ones passed by dcd_change()...

Maybe I can solve the problem defining dcd_change() as follow:

   void (*dcd_change)(struct tty_struct *tty, unsigned int status,
                        void *data)

and then passing the timestamp or struct uart_port pointer?

Thanks,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail: giometti@enneenne.com
Linux Device Driver                          giometti@linux.it
Embedded Systems                     phone:  +39 349 2432127
UNIX programming                     skype:  rodolfo.giometti
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
LinuxPPS (RESUBMIT 6): the PPS Linux implementation., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 01/10] LinuxPPS core support., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 02/10] PPS: userland header file for PPS API., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 03/10] PPS: documentation programs and examples., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 04/10] PPS: LinuxPPS clients support., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 06/10] ldisc n_tty: export all N_TTY ldisc methods., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 07/10] tty: new PPS line discipline., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
[PATCH 08/10] PPS: serial clients support., Rodolfo Giometti, (Tue Aug 19, 2:50 pm)
Re: [PATCH 07/10] tty: new PPS line discipline., Alan Cox, (Tue Aug 19, 2:54 pm)
Re: [PATCH 08/10] PPS: serial clients support., Alan Cox, (Tue Aug 19, 2:56 pm)
Re: [PATCH 05/10] ldisc: new dcd_change() method for line ..., Rodolfo Giometti, (Tue Aug 19, 3:49 pm)
Re: [PATCH 05/10] ldisc: new dcd_change() method for line ..., Rodolfo Giometti, (Tue Aug 19, 4:05 pm)
Re: [PATCH 01/10] LinuxPPS core support., H. Peter Anvin, (Tue Aug 19, 4:22 pm)
Re: [PATCH 05/10] ldisc: new dcd_change() method for line ..., Rodolfo Giometti, (Wed Aug 20, 1:53 am)
Re: [PATCH 01/10] LinuxPPS core support., Rodolfo Giometti, (Wed Aug 20, 2:13 am)
Re: [PATCH 05/10] ldisc: new dcd_change() method for line ..., Rodolfo Giometti, (Wed Aug 20, 6:01 am)
Re: [PATCH 05/10] ldisc: new dcd_change() method for line ..., Rodolfo Giometti, (Wed Aug 20, 7:05 am)