Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2098412ybl; Sat, 31 Aug 2019 08:03:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs08s5lVqs7X3T98n/w0MWWSO5xgHbjgbHd8dnpzleYp8OBkzZwbi6rkQmUoql3jr6Io/I X-Received: by 2002:a63:e610:: with SMTP id g16mr17179036pgh.392.1567263813803; Sat, 31 Aug 2019 08:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567263813; cv=none; d=google.com; s=arc-20160816; b=04ICjxjDcByGkgI6tLJJxf5ih02i76OPhg+rEj9mm7gXUWjWgm0CtKXQCPBMCAp7xQ AkuZHGxwoVto5kzeznZg6/27RP85ZowJh6xQ6a96cq55h8IaRurd+qXbUVwbdke7FeeM zqKmRguG9pXJnmMvir3FqW9n79NR4vjr6aXEZaX1s9i8KPIJmndg0XKyLBv8gDVp0UpO KGyf7fb+QDQhuV5pFSNlyXAx+J6SylHcPfGDC2BGpNpwwmC3csacRQtI5dWIoV2Xkljp Z9w0Xv3tivzFQ4ZXFRUarvpbb40EZiJR5lXnt/sWFSvcWyCU3ksVT8kLmnHtA68VwYbU EVEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wb/A0nLfYSOW2oh301mQSunagMCByFHKWhdM0f4nMws=; b=1CJaK4C7FBAPfsIQvzh6aP2wsA1B6kGmwPJPuolur0Em2TRy5jRM0yEKpcOHy1b3es Apu0mSoLKppUtqQB1my2paFYzvt/qhl8ibkOMi3Eo8mjHKSTc2E9Vp3ygnV+fYulJ/bn Dv7JoFuNntOIeNrDzQ1CHbVRXTasJdINK8CX6mYpa7WufX850w3uauzikGSaF/v5vUcu eNGT4y0o7QB9XfjnZ0HBquiybsk3Eva05uGxpr4t5zZ2Eqr+wWoVYc48IIlHCOo/LeoD sF68eWJD613lD0Y2Jl2SljE9Fxam/hcMQ91GeU+ip5jBBWR56qTtxmZd91C7h3W6IzR7 wmsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BVy1cPed; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si7593295plb.186.2019.08.31.08.03.17; Sat, 31 Aug 2019 08:03:33 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BVy1cPed; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728394AbfHaPBx (ORCPT + 99 others); Sat, 31 Aug 2019 11:01:53 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:32954 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728285AbfHaPBx (ORCPT ); Sat, 31 Aug 2019 11:01:53 -0400 Received: by mail-pl1-f193.google.com with SMTP id go14so4666948plb.0; Sat, 31 Aug 2019 08:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wb/A0nLfYSOW2oh301mQSunagMCByFHKWhdM0f4nMws=; b=BVy1cPedwKZIPpS9m31cRI6RXGHB3AfxEHnmky4WC//YrFjYix6lDPI0RP+F2X2uU/ nyLSgCVc2Y09hgNsy48NVWBdKogqMMoPk/asQ/sYdQeJQo3dg+fPM/g+3omdsNWN54pK W1Jt7vZcA93fzjmCDP8qewc8OyuQzUvbRXQeKTSW4ynDOkvCYm7ugEIIVBg2ncVLmTvm d0817ItdSSvMHYFC8HwOPA/jdHPKIwA8cdlY7dGxHjnSqwRsfcW+M4sZyLlj4t8BVdV/ W0Jxgv3uRjz24X0mroL49extd3AHnQnRzKT/PUtITWeJhbIy+D0Xc8V/25YDLAUw7SjQ O2FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wb/A0nLfYSOW2oh301mQSunagMCByFHKWhdM0f4nMws=; b=ftZa+eQ/Qo5G14jT3kxwEL0CECUL9X416oxiIK0oECeviJ0wV6VUSIjEtR78cCpzeu fS52WCXnxZKm/8pHeVhhvya3mULf135MhPGRkvRJBUV0UuTstg+yWfccBoc/+Js2Ub0m GEJAypKnGlbthKnJfbcWi5qJm3j804buf6prBZ4h8EJHw1oSQLFA8mtLBxNE2tWUNWbE 1qtyuz6YXuzppuKwWGkTXWDmJuoWvM34w1E3yfaZ/aMgPdaH5EvtVrj5jywocN5GIhbc zDhOBDI+5/2pq/oEfO2bxJZ6t+FJxXuY5YTbbJhvhKkXeaQdlnVwb+eK4swC7+KRiH4d NSRA== X-Gm-Message-State: APjAAAXss9HUaYQca9PTNwb4x+QzjWstbvp+uymtx7MBk3C1jJPWx12K P2FxxxGKZVe07rYYLdH2TPY= X-Received: by 2002:a17:902:1123:: with SMTP id d32mr21535084pla.218.1567263712480; Sat, 31 Aug 2019 08:01:52 -0700 (PDT) Received: from localhost (c-73-222-71-142.hsd1.ca.comcast.net. [73.222.71.142]) by smtp.gmail.com with ESMTPSA id i9sm21212123pgo.46.2019.08.31.08.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2019 08:01:51 -0700 (PDT) Date: Sat, 31 Aug 2019 08:01:49 -0700 From: Richard Cochran To: Felipe Balbi Cc: Christopher S Hall , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net Subject: Re: [PATCH v2 2/2] PTP: add support for one-shot output Message-ID: <20190831150149.GB1692@localhost> References: <20190829095825.2108-1-felipe.balbi@linux.intel.com> <20190829095825.2108-2-felipe.balbi@linux.intel.com> <20190829172509.GB2166@localhost> <20190829172848.GC2166@localhost> <87r253ulpn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r253ulpn.fsf@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 11:00:20AM +0300, Felipe Balbi wrote: > seems like this should be defined together with the other flags? If > that's the case, it seems like we would EXTTS and PEROUT masks. Yes, let's make the meanings of the bit fields clear... --- ptp_clock.h --- /* * Bits of the ptp_extts_request.flags field: */ #define PTP_ENABLE_FEATURE BIT(0) #define PTP_RISING_EDGE BIT(1) #define PTP_FALLING_EDGE BIT(2) #define PTP_EXTTS_VALID_FLAGS (PTP_ENABLE_FEATURE | \ PTP_RISING_EDGE | \ PTP_FALLING_EDGE) /* * Bits of the ptp_perout_request.flags field: */ #define PTP_PEROUT_ONE_SHOT BIT(0) #define PTP_PEROUT_VALID_FLAGS (PTP_PEROUT_ONE_SHOT) struct ptp_extts_request { unsigned int flags; /* Bit field of PTP_EXTTS_VALID_FLAGS. */ }; struct ptp_perout_request { unsigned int flags; /* Bit field of PTP_PEROUT_VALID_FLAGS. */ }; Thanks, Richard