Re: [PATCH] LinuxPPS - PPS support for Linux

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rodolfo Giometti <giometti@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, David Woodhouse <dwmw2@...>
Date: Tuesday, October 23, 2007 - 4:17 pm

On Tue, Oct 23, 2007 at 08:04:18PM +0200, Rodolfo Giometti wrote:

Hi Rodolfo,
 
 > here my last patch for PPS support.
 > 
 > Please, let me know if I have something to do for kernel inclusion.

Thanks for trying to get this merged, we've had a few users asking
us to support this in the Fedora kernel.

From a quick look through, it doesn't look too bad.
A couple of obvious things that jumped out..

* The example program in the Documentation dir.
  There was some discussion recently about moving away 
  from doing this, and instead moving code to the samples/ dir
  (or including it in util-linux instead if applicable).

 > +    static struct pps_source_info_s pps_ktimer_info = {
 > +            name         : "ktimer",
 > +            path         : "",
 > +            mode         : PPS_CAPTUREASSERT | PPS_OFFSETASSERT | \
 > +			   PPS_ECHOASSERT | \
 > +                           PPS_CANWAIT | PPS_TSFMT_TSPEC,
 > +            echo         : pps_ktimer_echo,
 > +            owner        : THIS_MODULE,
 > +    };

  should be
    .name = "ktimer"
  etc..

 > +#include <linux/version.h>

This should be getting included automatically for you.

On the whole, asides from these (very) minor nits, quite a clean
submission compared to a lot of new driver submissions to lkml.
Might want to run it through scripts/checkpatch.pl too to see
if that picks up any more minor fluff.

	Dave

-- 
http://www.codemonkey.org.uk
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] LinuxPPS - PPS support for Linux, Rodolfo Giometti, (Tue Oct 23, 2:04 pm)
Re: [PATCH] LinuxPPS - PPS support for Linux, Dave Jones, (Tue Oct 23, 4:17 pm)
Re: [PATCH] LinuxPPS - PPS support for Linux, Rodolfo Giometti, (Tue Oct 23, 4:55 pm)
Re: [PATCH] LinuxPPS - PPS support for Linux, Roland Dreier, (Tue Oct 23, 5:08 pm)
Re: [PATCH] LinuxPPS - PPS support for Linux, Rodolfo Giometti, (Thu Oct 25, 4:39 am)
Re: [PATCH] LinuxPPS - PPS support for Linux, Rodolfo Giometti, (Thu Oct 25, 4:32 pm)
Re: [PATCH] LinuxPPS - PPS support for Linux, Rodolfo Giometti, (Wed Oct 24, 3:00 am)
Re: [PATCH] LinuxPPS - PPS support for Linux, Rodolfo Giometti, (Tue Oct 23, 4:35 pm)