Received: by 10.223.185.116 with SMTP id b49csp2039637wrg; Thu, 15 Feb 2018 05:42:51 -0800 (PST) X-Google-Smtp-Source: AH8x224qRTzhwctNQRvN5EQkE8oW2MwmWkOJg3eKaBuuV0BnX9MbkD6lSqG+UXUqAcJJQfx/2Hlt X-Received: by 2002:a17:902:5582:: with SMTP id g2-v6mr2547852pli.4.1518702171468; Thu, 15 Feb 2018 05:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518702171; cv=none; d=google.com; s=arc-20160816; b=t7im4b4UDwXg7WY32ZEnn9ZQY5u9v2boE3G88GwLkOVzOjrs5QKoLczobw8ZO9FKob nFnPR79/7V5UGhQbP8bVqUIdHvWqrO9i6UOzLgwXhlaJD8MHJFKNrhkmhg1Au+CANx7u A8J5jWZWI+HPTVfa81JRnpJtm8VMaO37mhK1rNryLe8Rl74a/sAJJ8xwI9Nb7HlqxxeW 4oOblVawQTcVbHaILxQsn8WadMJkV8264j/8DaaxSwCb8aGq1d6Z1nNLojuS57KqrYUN WojgqC2ujQi3b6XLcUvV09tsM7+oaA6RBNtj3PQJ/DORf2IRzqiNLOQuHqoTAjXQAJBt Suqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ETKAAOpV00woxKw4lc+lIm04BDXNNtiDEHXKUPbrJh0=; b=EiCdYiVVCoReOI5m2c602SpEMc2zJEvh3SDv3B1dSSx0tZ49UskEh4LZEcKWY3P6m9 RAMtxWyd52wyL4O/46b6YSclFLhMzU4Bu2w+QP9Vto6CHIsm/JgojTb74wnslL/QrpEi G9d5GOuskqWCJXLvVRZEpxqQQEb6FDZXz+chVoopYmRHF4GmfSwjf4TxQBrcjPSMHzeO MGdFw2m+7nwhwUM2+k5HQJx5D6v36wZGDQ2sp1rGFo5WpG6QMnoXYHbGzPDe+2qjude9 9EQMXQeL0ZeVjBVvxw5upD0lgTFFU3NOa6pdi9yIRUXWpbXAN7SIaJ6DSfO+xtwrW5wE hxMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=SoAsvgGk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13si4260429pgc.508.2018.02.15.05.42.36; Thu, 15 Feb 2018 05:42:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=SoAsvgGk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032890AbeBONlp (ORCPT + 99 others); Thu, 15 Feb 2018 08:41:45 -0500 Received: from smtpweb130.aruba.it ([62.149.158.130]:37858 "EHLO smtpweb130.aruba.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031726AbeBONln (ORCPT ); Thu, 15 Feb 2018 08:41:43 -0500 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Thu, 15 Feb 2018 08:41:43 EST Received: from [192.168.1.7] ([93.146.66.165]) by smtpcmd03.ad.aruba.it with bizsmtp id B1aa1x00t3Zw7e5011aafK; Thu, 15 Feb 2018 14:34:35 +0100 Subject: Re: [PATCH 1/2] pps-gpio: Avoid flooding syslog To: Lukas Senger Cc: linux-kernel@vger.kernel.org References: <20180215125921.29494-1-lukas@fridolin.com> <20180215125921.29494-2-lukas@fridolin.com> From: Rodolfo Giometti Message-ID: <6c424674-e8f0-eaf1-c056-889e354b43b7@enneenne.com> Date: Thu, 15 Feb 2018 14:34:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180215125921.29494-2-lukas@fridolin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1518701675; bh=ETKAAOpV00woxKw4lc+lIm04BDXNNtiDEHXKUPbrJh0=; h=Subject:To:From:Date:MIME-Version:Content-Type; b=SoAsvgGkN3OAtvOhzxJESg1Xunbi6jCMdcD/e5ZEqNNvV1oQ7JhR/WrrrGGIjfT7e TZX22sgHreCrOoH8B3HOHEm8AXGtVnD8sTXsBC4/UuuZe5HdQR4tE/TpfSjCp0jmzy 7GJbNIFyJL9xrOuqkV52i1rI0rzj6htVTQsbxRX83RfUPyM/yaSOlCzjk8A3K5/Sx1 f+BZf+YHwDHqWPREuUCQHz8tzfWDtXegKrPlL9hKRqo6qeDIvYX/ugwM4eYo5P9HHA Oe4oaZ8C5k6QqomHdaqpwvJSGMeoWWsRJwHUuBpn3SzrRmLONTfeun2gK6E61MaDdS JUfnPuxOdNqsQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/02/18 13:59, Lukas Senger wrote: ^^^^^^^^^^^^^^^^^^^ Missing description and signatures... > --- > drivers/pps/clients/pps-gpio.c | 1 + > include/linux/pps-gpio.h | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c > index dd7624f1d23f..35c3b14fc9b9 100644 > --- a/drivers/pps/clients/pps-gpio.c > +++ b/drivers/pps/clients/pps-gpio.c > @@ -196,6 +196,7 @@ static int pps_gpio_probe(struct platform_device *pdev) > data->info.owner = THIS_MODULE; > snprintf(data->info.name, PPS_MAX_NAME_LEN - 1, "%s.%d", > pdev->name, pdev->id); > + data->info.echo = pps_gpio_echo; > > /* register PPS source */ > pps_default_params = PPS_CAPTUREASSERT | PPS_OFFSETASSERT; > diff --git a/include/linux/pps-gpio.h b/include/linux/pps-gpio.h > index 0035abe41b9a..67f50e8dcd11 100644 > --- a/include/linux/pps-gpio.h > +++ b/include/linux/pps-gpio.h > @@ -29,4 +29,6 @@ struct pps_gpio_platform_data { > const char *gpio_label; > }; > > +static void pps_gpio_echo(struct pps_device *pps, int event, void *data){} > + > #endif Why a void function? You should use it to toggle echoing GPIO... =8-o Ciao, Rodolfo -- HCE Engineering e-mail: giometti@hce-engineering.it GNU/Linux Solutions giometti@enneenne.com Linux Device Driver giometti@linux.it 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