Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3093337pxb; Sun, 3 Oct 2021 15:05:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/HUtuYjloMVN5ribwBhWUCDCr9XeoQqd9jGfYIHw+woW9x2+o7LeCnC1V+1K74bwp2jsw X-Received: by 2002:a17:907:7ba9:: with SMTP id ne41mr13347017ejc.105.1633298720013; Sun, 03 Oct 2021 15:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633298720; cv=none; d=google.com; s=arc-20160816; b=roAQSM1H8ul7sRA+lGeSJDMEHFH3HURDwtTYD2bWB2uT+b9z1mlU4Hp3j2pe1lG/HM dauAavwdNyvGkYUVS+DK1d/el+CZKO+a+gBdd0yOmDYs8yt/y+wSiNRm1h3hRoExkp98 CZzAmTrDpJfUaTX+O/A9L5u0MuNlMC4NMgANJXFvZ7PAsm/1ReeBZOmuPiXUL3vQo+8Q b2Z9ubq71nnoHHEBEmWJx5UXBOmSokxu4RFKtWFqoFxP6uSHMWkXEskFpwYUphQz7SeJ Lo16x6Qcj8ljWlRp4WsK3a3sqo+EWx9ucwJR8wTLEFkUgNE6rtqn6wlHaWcl1X+T0+AI Cakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SRVyXOWt8mtWnh8G8lJe1b0B8K7o+vzNCzCuZppoeFY=; b=s2UUBi6fr9aSakI+648tCpPr5G8JcSBOm1sTTBQkcumxys5p2buYGlcMah0cAuTCos +lRdZpv4XnTrE+Yj83q3iVFbNZQg4KZ5A+PfdYQj+Y7tnNQiIgnSP7DD4qlGWJFZeLuQ zkMtaNSK0hgqVSRPNnHXzoXSd11ZgyjNyPmDQSU2Qdkyv6oJA/tS7HKI0GR4LVDejB5O +Yaqag82RxOmnVNl0VFH+li2AaXrBrjtbXzpj63iK/yT9C/+hO1g4aifvq+5LXECiGar l+zfJkKN8QJRKnxXHW2gUB0Bbk4Gidbc61fZn8b3whrPLKWfzLfPHjm7dhTZW3UzUeeo pOdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UDdv8wy8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de10si12408233edb.150.2021.10.03.15.04.56; Sun, 03 Oct 2021 15:05:19 -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=@linaro.org header.s=google header.b=UDdv8wy8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231785AbhJCWDb (ORCPT + 99 others); Sun, 3 Oct 2021 18:03:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbhJCWDa (ORCPT ); Sun, 3 Oct 2021 18:03:30 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4686EC061781 for ; Sun, 3 Oct 2021 15:01:42 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id y23so24174294lfb.0 for ; Sun, 03 Oct 2021 15:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SRVyXOWt8mtWnh8G8lJe1b0B8K7o+vzNCzCuZppoeFY=; b=UDdv8wy81dZshSCHMsMUGGkkoe7F62j5Oc3ivfQ2gglLlCiEpPAM8Qjhq6vgr4SET8 t7BsQOt+U8D4dBUn5CSJpMr/AAcXh0L/ZXWyYbtvtOfiJn19rWyAkySe/U7fA5wA56S5 XKFijSIaUB6Wy9bo5j2YjyUCuLlMPip0R3CgJ32eX63IsZz0RReD7n6rrsYzZu0mxfRn 8X3ay3BVSBl4kkD1b2/eP/lpaIOvls13ll+sxXMbCcn5L3BiShjUBpQwSYZ7+Vme035r xRcIFEBRtIpRuS09YBaHbSELcLsSnCNWqKNewWZuDakqbQlmMEm7PAGR1a3jrLHKecRv hjMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SRVyXOWt8mtWnh8G8lJe1b0B8K7o+vzNCzCuZppoeFY=; b=YaiJRTG2R+nBS2PYPYlEQo/yPZBmCUGsRGYpXgUgoGtIfXo9h8ODdC81BNlfdShowq he2Hr/T4F3mNVTqqoS6KnZ8qFyHkXrexlEjhzTjcDI5WVC3G3WeOhNCh7/vykrjIe0NG 2op9bctPeiFuUp7ldY/yqV1u9QknSZUAoGihnSq6EF7RXNZn98GrVjRTEkSm+uSFDIwk VfU05BVCHoQRlOb0xjRHlmMJqoZjMV9ac+OM0Sq1byx7Aic/HwBfXW9lOGT+ZjtLZOAq bLCztkbc2T0pYThU5KRZi1IHcQlenoKpydgpqZ8kjzAdVcTPCblB8tkuB8Go3llRdKHF hI0g== X-Gm-Message-State: AOAM532IsfjYFw7dMmeuSZIFpKJEJB55rGpPyc2AwJ+CFjBHMMVrOW1M PbAPPLeWlrOBa/zmF+IERLAB2FhiOUdGviqJV0tpLg== X-Received: by 2002:a2e:7f14:: with SMTP id a20mr12507373ljd.259.1633298500413; Sun, 03 Oct 2021 15:01:40 -0700 (PDT) MIME-Version: 1.0 References: <20210930232617.6396-1-dipenp@nvidia.com> <20210930232617.6396-7-dipenp@nvidia.com> In-Reply-To: <20210930232617.6396-7-dipenp@nvidia.com> From: Linus Walleij Date: Mon, 4 Oct 2021 00:01:29 +0200 Message-ID: Subject: Re: [RFC v2 06/11] gpiolib: Add HTE support To: Dipen Patel Cc: "thierry.reding@gmail.com" , Jon Hunter , linux-kernel , linux-tegra , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Kent Gibson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Doc Mailing List , Rob Herring Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 1, 2021 at 1:26 AM Dipen Patel wrote: > Some GPIO chip can provide hardware timestamp support on its GPIO lines > , in order to support that additional API needs to be added which > can talk to both GPIO chip and HTE (hardware timestamping engine) > subsystem. This patch introduces APIs which gpio consumer can use > to request hardware assisted timestamping. Below is the list of the APIs > that are added in gpiolib subsystem. > > - gpiod_req_hw_timestamp_ns - Request HTE on specified GPIO line. > - gpiod_rel_hw_timestamp_ns - Release HTE functionality on GPIO line. > > Signed-off-by: Dipen Patel > --- > Changes in v2: > - removed get timestamp and is timestamp enabled APIs Pretty straight forward IMO Reviewed-by: Linus Walleij Yours, Linus Walleij