Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1679732pxb; Fri, 1 Oct 2021 16:57:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd1WKeWaK0L2+hp9YFugbzGDvDPdc6HXx9y5uSsreWlNWaNDvq1y5WUcEFqKYD0V9D5Ysb X-Received: by 2002:a17:906:7a09:: with SMTP id d9mr1003101ejo.116.1633132651398; Fri, 01 Oct 2021 16:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633132651; cv=none; d=google.com; s=arc-20160816; b=yRjPSZO+j/uo9+Uq/JdPHcw3qVT1P75g6HnlgyLUKCigaAk7uwkOpmqjansHIchD5L YuLWyzRbYkyZ7XMThf8AsU3hJeJ/sO5EUHdl1Ty145Zen/Q9/DmukejRMxK7hzp/RDXz sXXM41pkaK6BZtLY8vtSMjbikzWgoUA9713QPQP8t8MRNPVzgEhSz3nkb7OU4LYeE9WI GudOXCaX1DLUv+p2hjq15Y35bwdGP/ej1P24jLUyacVOUXjGXlh+A4hXhpPET0IHGCxO 2vAeJDbsK0xS0f7JXQl1trmMNIvYDVk6I6noEP93Gn1RguKOWGsD5mGkJin2Sq3O5eVp Qavw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=5wv6+Frhzsf9ZnmXfBPxgpN4ah/vIcnKRwBiCvQp04A=; b=eHVw2zdRdJPVYrvlTUrU5oUG8WJh89XlDRtGsX43/dIPHr2jdckl6xBEzEftp0zJ6K ZIQ88x5aBPIg6gFnQ2Ev+RbbJa7DelJtHUWzBrGjdsSkiOLopvaq2PPdQ2hWpwr9l7Kv ajafnOHGLj+gxQkI/6Ie/nu+FumGDHYNFuYpF/33MCBOt2LWvHnQ1uOAFHKIRM9H46Am T1hau7BFwOKmsk9YoxtfrW8uLa8cJaagc5e6mNz5OGnTnG2OT8aN866aLvlAAmJtII1L X/BATTsYMDfm/AS+zxUw7/uKRAqWXWYyyTs1pWhd5YLYra8m5jznrM2+tI8L3dVAqE2I EOBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qERDYPBj; 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 ia24si9570391ejc.453.2021.10.01.16.57.06; Fri, 01 Oct 2021 16:57:31 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qERDYPBj; 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 S232169AbhJAXzU (ORCPT + 99 others); Fri, 1 Oct 2021 19:55:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbhJAXzT (ORCPT ); Fri, 1 Oct 2021 19:55:19 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67A77C061775; Fri, 1 Oct 2021 16:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=5wv6+Frhzsf9ZnmXfBPxgpN4ah/vIcnKRwBiCvQp04A=; b=qERDYPBjPMhHVtObbuD90nXjqT RYLeXP5T/UT0ArNmr4bzLPIJw/dGdWxQAIWzuZFwhWDPQsi42IMeRANWSKDN8JDwjsLc9UnUZupE7 8HFHGisNfDKnJfwq+R8ag1MWSEgcgUJXKVGalm/VlXXSnip8VFIpO+2D8gny4vQ6kawWRDDUMwHDL F6XcGAqLpLtF9tTyeg+hDpTvuxDVZuKmAq9LKIAehGSDMQWgK+LFltyEh2GyPotVj7lny60LqmZSC eNvYgABxCYBhLVzxRWJG7hNaPlEVTYcBScXfJm8kTL/zG3bw1a9oAjdpEdT6adTyBUCDsU3hHJN/N noYy+RWA==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWSLN-001Ull-9d; Fri, 01 Oct 2021 23:53:33 +0000 Subject: Re: [RFC v2 02/11] drivers: Add hardware timestamp engine (HTE) To: Dipen Patel , thierry.reding@gmail.com, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, warthog618@gmail.com, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, robh+dt@kernel.org References: <20210930232617.6396-1-dipenp@nvidia.com> <20210930232617.6396-3-dipenp@nvidia.com> From: Randy Dunlap Message-ID: <010426c7-74ed-33fb-0c06-c42408cffc0e@infradead.org> Date: Fri, 1 Oct 2021 16:53:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210930232617.6396-3-dipenp@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/21 4:26 PM, Dipen Patel wrote: > diff --git a/drivers/hte/Kconfig b/drivers/hte/Kconfig > new file mode 100644 > index 000000000000..6fdf243d281b > --- /dev/null > +++ b/drivers/hte/Kconfig > @@ -0,0 +1,22 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +menuconfig HTE > + bool "Hardware Timestamping Engine (HTE) Support" > + help > + Hardware Timestamping Engine (HTE) Support. > + > + Some devices provide hardware timestamping engine which can timestamp provide a hardware > + certain device lines/signals in realtime. This way to provide This provides a > + hardware assisted timestamp to generic signals like GPIOs, IRQs lines hardware-assisted like GPIOs or IRQ lines. > + comes with benefit for the applications like autonomous machines It comes with a benefit for applications like > + needing accurate timestamping event with less jitter. > + > + This framework provides a generic interface to such HTE devices > + within the Linux kernel. It provides an API to register and > + unregister a HTE provider chip, configurable sw buffer to software > + store the timestamps, push the timestamp from the HTE providers and > + retrieve timestamps for the consumers. It also provides means for the > + consumers to request signals it wishes to hardware timestamp and > + release them if not required. > + > + If unsure, say no. HTH. -- ~Randy