Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp482896ybi; Tue, 16 Jul 2019 00:23:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPjxnb+5qRey1EYvl6eAeaS04bJtQoyf8/RV+zl72hbz/Zr3Vw2sBC+S8emQSwntLpnRap X-Received: by 2002:a17:902:1102:: with SMTP id d2mr33397075pla.149.1563261829736; Tue, 16 Jul 2019 00:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563261829; cv=none; d=google.com; s=arc-20160816; b=inUF386Y4nuOlCBd96YXuNzVvDiIxRXsvfEGQsewZ7/KLkmQk3dquS5X0cpxhLjY2k JweFS87buU6Ns2lunwPOXrWbEtvAKk4H6ONkiRKvyEgjX1/WzveQ54NEoMayXrWxA0/1 8vYFrUHZ0IZDkmjHU4P6J8N6uuHuzqqXuWOqWD7uxgNcwdKpFqefUjcRc3J/jI9C+/hE afLrzk71w1YxfB+k4X22XvbnniObp27kfvoCvUhwtWb9NzU16EJhtDPxMbI8AXCVse4+ /Gj8XthzcEQYOwLfLYvK3YTzRvqQ/z+/2Np1uD1ybK/vFPLEFnCxfF6Gx6XRLmR03iHo ruTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=B3iNfVl+8MKe02oKeJBnYyg+O5/O8Qla58CkGha26VY=; b=gh0XKOWD98GCHyztOxB2FHPNUQCpMfc8hj2OSvOji42VibknotF9FEweJE9npCf0Qz trwnlRYBC5YnllfaykSKtdfHe0xeC04sTbWEA0iJvwR68f2Gqi0UqV9NjghPjSaUn43y OjFq78lhYsI6LkpMTg7aK+gCaObbbmKO9LkDmo0B8L5pSanVjodMfmqCG6wxhTUAn5Lv nezFtT14onl6MxhupWSI2VQlPebRow4p3dDMy8DyFFTC4RiM+q9n8/5n8/2rcg9QRyac EEEcuiUY80XkOLBiUxfuhbE/CCRZHehwFLtZNeILFq0MZRvr3FF4pCgzGTIxmDXYE0+9 kqww== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o63si18263719pjo.94.2019.07.16.00.23.33; Tue, 16 Jul 2019 00:23:49 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731195AbfGPHVJ (ORCPT + 99 others); Tue, 16 Jul 2019 03:21:09 -0400 Received: from mga09.intel.com ([134.134.136.24]:64907 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730935AbfGPHVI (ORCPT ); Tue, 16 Jul 2019 03:21:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jul 2019 00:20:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,496,1557212400"; d="scan'208";a="194796238" Received: from pipin.fi.intel.com ([10.237.72.175]) by fmsmga002.fm.intel.com with ESMTP; 16 Jul 2019 00:20:56 -0700 From: Felipe Balbi To: Richard Cochran Cc: netdev@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, "Christopher S . Hall" , Felipe Balbi Subject: [RFC PATCH 4/5] PTP: Add flag for non-periodic output Date: Tue, 16 Jul 2019 10:20:37 +0300 Message-Id: <20190716072038.8408-5-felipe.balbi@linux.intel.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190716072038.8408-1-felipe.balbi@linux.intel.com> References: <20190716072038.8408-1-felipe.balbi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When this new flag is set, we can use single-shot output. Signed-off-by: Felipe Balbi --- include/uapi/linux/ptp_clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h index 674db7de64f3..439cbdfc3d9b 100644 --- a/include/uapi/linux/ptp_clock.h +++ b/include/uapi/linux/ptp_clock.h @@ -67,7 +67,9 @@ struct ptp_perout_request { struct ptp_clock_time start; /* Absolute start time. */ struct ptp_clock_time period; /* Desired period, zero means disable. */ unsigned int index; /* Which channel to configure. */ - unsigned int flags; /* Reserved for future use. */ + +#define PTP_PEROUT_ONE_SHOT BIT(0) + unsigned int flags; /* Bit 0 -> oneshot output. */ unsigned int rsv[4]; /* Reserved for future use. */ }; -- 2.22.0