Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4184740pxb; Tue, 17 Nov 2020 13:42:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa6poASvs/bWKd9GvE29SVMAOq3aW69cCELBuawyBkqwHmxev4yb/GH4ee0o0NdeJi322b X-Received: by 2002:a17:906:3a02:: with SMTP id z2mr20564794eje.452.1605649373987; Tue, 17 Nov 2020 13:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605649373; cv=none; d=google.com; s=arc-20160816; b=drUidsxigjo2D9/ylozLn/nVFWJ0ZX3goZqbJOWNFyAHuuCxCEn5oJ9QtLu8oKF+Sz fUfiPu1CKwjGueUGZW0PsFyfE6+LWvWrmC2e95CP+GKuPi2Wzxj08W3m15d6l/KG1K8+ RmiLw5/SR05aa8QLlNNXEanhPfMvsbCleP/7IvoD0vzM7gnimK09v+HBfPb/3F9yTL8m RC6/nVMySCGlDCPdBbu80wwgyCPyYmL/VrCBPi9tOx/+xSl+HOzhln45jGS9NgmIJLNL OZvkKMwjM5wfO5AXsKPRhdMVMxG7WKEeBxFWy6pieVrNLv0+ErAQECHYDC2UIyirBmEy eI3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=STkbt/vDw4+Q/Rpj12NDoA/9npyVejMpPpjzAVEJotA=; b=ss7Xjg/d+aF42uR8+R7AfYDXYpeNHS9wB4TMPQOV3JvEaf0/K55jahJzrQ8OalFtyp XYyIrA3bIEAir6dUsvaQI0qn34GOsZ0iNV2fcEPeWvXWPY/8UO9OcYM+z/8A8kENgqrZ 1R6soOcpMe4VilUPetu/RMlQ+VvcaJJ/UIoIWrc54E+vj+PfbsTU9HQ15B3S7+94r7pt jEdtpCjO2ue/Y4//873y6OzQGn3S/FYl35ZJu/uIVFY4FhwevSK+Phi2t4W5864t1Cle F47UfqQUZcgin0HRgB14Lj9LSJ6wkIJP/fir5iKAvaJTFWucHqhjt2DMOIrrKPgZ7E5h hatA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si261638edo.222.2020.11.17.13.42.08; Tue, 17 Nov 2020 13:42:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728227AbgKQVkS (ORCPT + 99 others); Tue, 17 Nov 2020 16:40:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728138AbgKQVkS (ORCPT ); Tue, 17 Nov 2020 16:40:18 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31804C0617A6 for ; Tue, 17 Nov 2020 13:40:18 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kf8hx-0002vq-VC; Tue, 17 Nov 2020 22:40:13 +0100 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kf8hx-0003ix-Ct; Tue, 17 Nov 2020 22:40:13 +0100 From: Ahmad Fatoum To: Richard Cochran Cc: kernel@pengutronix.de, Ahmad Fatoum , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v1] ptp: document struct ptp_clock_request members Date: Tue, 17 Nov 2020 22:38:26 +0100 Message-Id: <20201117213826.18235-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: afa@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's arguable most people interested in configuring a PPS signal want it as external output, not as kernel input. PTP_CLK_REQ_PPS is for input though. Add documentation to nudge readers into the correct direction. Signed-off-by: Ahmad Fatoum --- Prompted by Richard's comment here: https://lore.kernel.org/netdev/20180525170247.r4gn323udrucmyv6@localhost/ --- include/linux/ptp_clock_kernel.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h index d3e8ba5c7125..0d47fd33b228 100644 --- a/include/linux/ptp_clock_kernel.h +++ b/include/linux/ptp_clock_kernel.h @@ -12,6 +12,19 @@ #include #include +/** + * struct ptp_clock_request - request PTP clock event + * + * @type: The type of the request. + * EXTTS: Configure external trigger timestamping + * PEROUT: Configure periodic output signal (e.g. PPS) + * PPS: trigger internal PPS event for input + * into kernel PPS subsystem + * @extts: describes configuration for external trigger timestamping. + * This is only valid when event == PTP_CLK_REQ_EXTTS. + * @perout: describes configuration for periodic output. + * This is only valid when event == PTP_CLK_REQ_PEROUT. + */ struct ptp_clock_request { enum { -- 2.29.2