Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell King
Date: Friday, February 16, 2007 - 12:12 pm

On Fri, Feb 16, 2007 at 07:52:30PM +0100, Rodolfo Giometti wrote:

Yuck.  Please.  No.  Doing it this way means you have to modify every
single serial driver out there which is a mamouth task.


Did you not look to see what's in this helper?  You'll find within here
the following code:

#ifdef CONFIG_HARD_PPS
        if ((port->flags & UPF_HARDPPS_CD) && status)
                hardpps();
#endif

which should've been a big sign lit up in bright lights in Times Square
pointing you towards the right place to put your code.


Why not continue to leave it as a decision of the administrator - if
you want ports to default to having PPS support enabled, change all
the registration to set UPF_HARDPPS_CD.  But leave the admin with
the ability to disable it.


This means that PPS support is not available for any port which wasn't
autoprobed at device discovery time.  That seems quite restrictive.
Maybe it needs to be coupled with the setting/clearing of UPF_HARDPPS_CD ?

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Fri Feb 16, 11:52 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Russell King, (Fri Feb 16, 12:12 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Fri Feb 16, 1:43 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Fri Feb 16, 1:57 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Fri Feb 16, 2:03 pm)
LinuxPPS: fixes, Rodolfo Giometti, (Sun Feb 18, 3:43 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Wed Feb 21, 5:04 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Thu Feb 22, 1:51 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Thu Feb 22, 2:00 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Thu Feb 22, 2:59 am)
[PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Tue Mar 13, 2:38 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Tue Mar 13, 3:48 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Wed Mar 14, 2:31 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Wed Mar 14, 6:19 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Wed Mar 14, 7:06 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Wed Mar 14, 7:12 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Wed Mar 14, 7:27 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Wed Mar 14, 7:42 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Wed Mar 14, 7:52 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Wed Mar 14, 8:37 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Wed Mar 14, 8:47 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Wed Mar 14, 1:57 pm)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Thu Mar 15, 3:29 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Lennart Sorensen, (Thu Mar 15, 8:18 am)
Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux, Rodolfo Giometti, (Thu Mar 15, 8:37 am)