Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932588AbbDINFP (ORCPT ); Thu, 9 Apr 2015 09:05:15 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:56759 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755113AbbDINFM convert rfc822-to-8bit (ORCPT ); Thu, 9 Apr 2015 09:05:12 -0400 Message-ID: <1428584709.7346.25.camel@pengutronix.de> Subject: Re: [PATCH] PPS: Restore lost capture-clear option to pps-gpio module. From: Jan =?ISO-8859-1?Q?L=FCbbe?= To: "Gary E. Miller" Cc: linux-kernel@vger.kernel.org, Rodolfo Giometti , Ricardo Martin s , James Nus s Date: Thu, 09 Apr 2015 15:05:09 +0200 In-Reply-To: <201504022004.t32K4xbW013508@spidey.rellim.com> References: <201504022004.t32K4xbW013508@spidey.rellim.com> Organization: Pengutronix Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.12.9-1+b1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c3 X-SA-Exim-Mail-From: jlu@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1153 Lines: 29 Hi Gary, On Do, 2015-04-02 at 12:21 -0700, Gary E. Miller wrote: > In the conversion from platform to device tree the capture-clear > option was lost. > > capture-clear is needed so that time_pps_fetch() will report both > edges of each PPS pulse. Both edges are needed so that userland > programs, like gpsd, can autodetect the leading and trailing PPS > edges. This is intentional. The userspace program can configure which edges it wants to capture at runtime. Only the polarity (assert-falling-edge) is actually determined by the hardware and must be described in the device tree. Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/