Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2653085pxv; Sun, 27 Jun 2021 04:51:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEs5WQFpHt1bJ6Eb7WxyL2w/SJmapwq4ZazpxywEZNRJquY4kh4pXEu4xMPuaQqfgbndrw X-Received: by 2002:a05:6402:524b:: with SMTP id t11mr27351961edd.327.1624794699458; Sun, 27 Jun 2021 04:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624794699; cv=none; d=google.com; s=arc-20160816; b=ThljFEIHgg2W9JAdLE0jT8WxCsavhnaBfjJ6Ys3uO8Z9cUtAac8oqcrk+wLhcAFLeN FMjJldhkf41JOd6/stDc4H3u4Yy3RTKcjuu9/4oKXtSxl6toQIDY1mtGA56MmVEMTw7J GSbyAuzPTPe+ncgkn058wBycUkvw9OShnX8E6o/JsSiET5ZvzZd9kXn+PxDjotoe6xWm oNHxL04YuxsbCv5VhHEONF4JyQ+fdNGn5MYMYwi0EP5JB0sXcDRnfHsBcAVGBeY821JQ ME1pApLJKT/eJaa8dLpGLrYhEGWZxJJg2DmRdTCPK/gF+F+9vfkTaCGj6woNnateSsYf AYyA== 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=tpoElu9HhDNMGczYWroxZynDrE3+UL8THrpTkrlrgBE=; b=WNYSlN/d8UKLThJAQYaVJGfx8d7jWL99h4RVwuzEwTHlZVnfoA6JywDWzkPApOMiYI qUd6qeWv4F5szSm7KcwsSimwuN4VYZg69NuDDfH6idWc2HU3TbuxBCM/b9E3jIr460Nw enZ0jP+h0gUDilnWZfmIqDsNiQZh/6DmxXcYz+XJxHVULHmqHode8bBEe/Ngx/Lu8F9g cQem9tS4z4csOqgAcBqrTmiH+DzhxaeR4XH4wmQrZvDD00WC0tWcdja9T7ZuYIo463Kj RMof+WzmPo7VKFntl9i8cfX3tmE48rtzqIpQT02YzP4MdxhX0qjp2T8jP5+fypRge4Ky sV0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SeMq4I4f; 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 5si860646ejn.172.2021.06.27.04.51.16; Sun, 27 Jun 2021 04:51:39 -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=SeMq4I4f; 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 S229817AbhF0Lvr (ORCPT + 99 others); Sun, 27 Jun 2021 07:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbhF0Lvq (ORCPT ); Sun, 27 Jun 2021 07:51:46 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92A26C061768 for ; Sun, 27 Jun 2021 04:49:21 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id bp27so1082847lfb.9 for ; Sun, 27 Jun 2021 04:49:21 -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=tpoElu9HhDNMGczYWroxZynDrE3+UL8THrpTkrlrgBE=; b=SeMq4I4fzXXSXZW+ZTJ4cnYUEmcGafFSMeE7zSJzNqKsEB54rze3vvRxqcbaxeFqbt UjmCQ1gN+BMf1s2+0oeI1XU6ZKLo/cisq0n4u0rgL+JJErn6sXBtdXgZyMCYmFeTKIQW mp1vRjWQSOO4NoVUJ2WrGNXnvKqhmp7uVDyXmWm3bhxP2oWTdAzD6tSC8JUz2ufrlsyA 6IgvBRUnYwmBpq+Iie0X2AuqlJOs0WqkZv3pixeIozAFt8FbK/4DYNDXlWYS/olf1uZK xfCg5zj49WCyoCCYH/IbxQCifxirtTFJALHF3uun6ZmVLct6Av2uFUoJkDy7WsrLGIjz HDXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tpoElu9HhDNMGczYWroxZynDrE3+UL8THrpTkrlrgBE=; b=sOKIFvGMXgqlrqrx2ahborQE5NulI97FjzY/zbDXCczmz7Gx0xRCsT3B0jtellr/n6 vAxdTGNaWo26CqRKuBhLLVm/E0lCT6E1P5mO//cOItncQJf4B/BpWT5EPizZX2XrXTtV v6nmCEC/Nbi0Cxmy235DlklMwiMaPkZEtsVxMgoVX/N6mA6F9F6Z5M7WO000Wz8nB7g0 Yv7JujqOlUytSiJcegsY8ox58f2YtOfbpCJA4kPifWyuedSnsFIrHqhyfID+Tz+licOp nKbWCsXTYbk762tSkmlLHr2bKmwihnBKtvgVRNfCFX7Z3/2f8zh0tlWMEC6PZBAfprxO qbcw== X-Gm-Message-State: AOAM533IXhXfLwSuP8AD+zkjqLKKjmSTdEsZ1wzNlJ/idUFM35BhC9OQ 7tg2wJ8Vyu9fOFr0JSKjTb5HM3B3HooUxfS9THvl0w== X-Received: by 2002:a05:6512:1508:: with SMTP id bq8mr15388692lfb.529.1624794559770; Sun, 27 Jun 2021 04:49:19 -0700 (PDT) MIME-Version: 1.0 References: <20210625235532.19575-1-dipenp@nvidia.com> <20210625235532.19575-9-dipenp@nvidia.com> In-Reply-To: <20210625235532.19575-9-dipenp@nvidia.com> From: Linus Walleij Date: Sun, 27 Jun 2021 13:49:08 +0200 Message-ID: Subject: Re: [RFC 08/11] gpiolib: cdev: Add hardware timestamp clock type 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 Sat, Jun 26, 2021 at 1:48 AM Dipen Patel wrote: Just a quick question about this: > + GPIO_V2_LINE_FLAG_EVENT_CLOCK_HARDWARE | \ Is the usage intended to be such that since hardware timestamp can not be guaranteed we need to ask for it and fail and if that fails maybe the software wants to fall back to the realtime or common timestamp? I'm thinking from the view of libgpiod or similar apps that abstract this and they will be "I want to use hardware timestamps if and only if it is available, otherwise I want to use this other timestamp" or is that use case uncommon, such that either you know exactly what you want or you should not be messing with hardware timestamps? Yours, Linus Walleij