Re: [PATCH 1/2] pps-gpio: Avoid flooding syslog

From: Rodolfo Giometti
Date: Thu Feb 15 2018 - 10:36:31 EST


On 15/02/18 16:12, Lukas Senger wrote:

Why a void function? You should use it to toggle echoing GPIO... =8-o

RFC 2783 says to generate the echo pulse "as rapidly as possible" which
is why I do the toggling in the irq handler. However this leaves the
default echo function installed which just floods syslog.

The pps_event() function does it for you in a beauty-and-clear way by using the info.echo() function. :-D

Another problem with this patch is that it also is against my old one
and not against current kernel code.

Yes, correct it please.

Ciao,

Rodolfo

--

HCE Engineering e-mail: giometti@xxxxxxxxxxxxxxxxxx
GNU/Linux Solutions giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxx
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
Cosino Project - the quick prototyping embedded system - www.cosino.it
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it