Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4280840pxt; Wed, 11 Aug 2021 02:13:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/y2SICTC8lTYSVShajzXaS3FjFv51GoxB8iACYUl89syoiSlXAjszHVVa5WjjuQH56pzr X-Received: by 2002:a5d:9eda:: with SMTP id a26mr77185ioe.166.1628673220056; Wed, 11 Aug 2021 02:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628673220; cv=none; d=google.com; s=arc-20160816; b=k7FKdXD+y1hWRBKIrFnLKwr5cIgFmpBmCF8IhJhkL3slI1VHXm4k5wnZNkXHyh5N3J mSi9VN/t6kMlHPMmTneNxe4DTXv3RnzlOZxziusaAX6nveURw+hya+bd0/WEmzVe0Mmk IWN4y1LwNKq6OghzlF53pma/LCBYBT/5aJ4xNc/DdwSjnLJG2EI3ia4WVrdFZehTN0J5 aP6NEZtQ2sklSe1twwwLWVaZID2aqDBs78mBOoNf3Ba5Net5zidkKgmj6fQdJtltq0xv Oudj/VSyyX6MVYXrD/rRJcCobSMtL2F+Ih57Sxbn3iZq4QlP/ipCbTc9ODI74/Zn3gzz GJxg== 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=45L965AHZgo82l4aN2SrSPr1cis24KkD7elj4CXl2IE=; b=E0nxbWwWt6npFQU9vcCBrf3rO9h3dPRxbcX6A3BVsuJ5QS+2B5n9/hmgBbO4khtyub v5QyNN4iCVtaWa2UWuyQIEPSSCeD3xPWNQAIGSLYVEGXtsj3kKbcVTaicJAA2ii/rxg2 eo8E2PMOMC3kRkNsgyp4/5uOCJS39ppNHuZVnytm8FmGbYguLSxLlQAj2EEUyWAn6CxU Qf364GySHep2XGRIlVdNj8/auD9P1FuFN/aV4ccaVS9LboCdxb51T7jJmftwBHgM7ol9 BYlLBnC/xzE2dqv4jICLlm81OJd75kDbX4TVOoAdxzX5roqxkMT5/mOifBJ9ngHcvSNe ti1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tHkB54yS; 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 l6si25384901ilg.44.2021.08.11.02.13.27; Wed, 11 Aug 2021 02:13:40 -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=tHkB54yS; 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 S236650AbhHKJLy (ORCPT + 99 others); Wed, 11 Aug 2021 05:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236369AbhHKJLy (ORCPT ); Wed, 11 Aug 2021 05:11:54 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92EA9C061765 for ; Wed, 11 Aug 2021 02:11:30 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id u13so3426154lje.5 for ; Wed, 11 Aug 2021 02:11:30 -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=45L965AHZgo82l4aN2SrSPr1cis24KkD7elj4CXl2IE=; b=tHkB54ySsHx551ghZG3oiWj9E5OW/jA0gsGikYmUj5abrUVPS1pVfN3YxmEs2Txlur ZUKxCfCNrdIg4aTp9DKXjGgZMeKIi7GQEmtRY7jd6QCzL89NhZceOeCtuySmIX8VXHB0 +fwB+P1mzXXtfPraNDkgH0mZOQmFtC97CavMsU6Y7KYupLPgkK2B5BYh77cPr/720/ks CK6XjfVWlCWsRwnBexZGmArWthojlDpRrGh4UTWPSanKqLH2ldait5j3KFIvWCI5ji6d 67JYZJ2Xm+uVc0Cv6VHJn5x7tGKGvldtq2Kcfk0d1vuVQbKOsUwkjr5fuAm0fDlrX5yC TbXw== 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=45L965AHZgo82l4aN2SrSPr1cis24KkD7elj4CXl2IE=; b=HLmdVEluq87SoQFRJzGXltjjfvaaLwa2cMtqo8QRg7Ki8VAhL0oqqONJi7aJOl6n2A XvuTUxVaAV7Cc7FkHt4qBSdzFUavbiC79VugfQuHMLflhyeBP0HeNPj3cNid7XY4TFWk TezOYkgwaVDfzdc7a9guXn6Zz5yGedxwUA1otYTkxeW6uEuwhbm3TjJc2fwO7btHj28B 5uhXR20dxFp99+8p6rAmUxgv3xdT1UZ/DPKPIxYId6lKS50up3dqIfJNclLZMnu8aeS4 +E0nY/kq1wTxbPtMwUq9Kc24tOBjT1CUg/Bb6lh4yAQQS7+CQpPjwPO5OP8vM31TW+jt b57Q== X-Gm-Message-State: AOAM531W4PVuFhEMvh9OpeemirpB3kfj+wH67PuUXe6hVicdKKvx3dIe ujiWfkexivFZOH97aXVo/FGbB4Q0V9C5Punv2NMyvg== X-Received: by 2002:a2e:9e46:: with SMTP id g6mr2650552ljk.326.1628673088252; Wed, 11 Aug 2021 02:11:28 -0700 (PDT) MIME-Version: 1.0 References: <20210625235532.19575-1-dipenp@nvidia.com> <20210625235532.19575-10-dipenp@nvidia.com> <20210731061617.GA12414@sol> In-Reply-To: <20210731061617.GA12414@sol> From: Linus Walleij Date: Wed, 11 Aug 2021 11:11:17 +0200 Message-ID: Subject: Re: [RFC 09/11] tools: gpio: Add new hardware clock type To: Kent Gibson Cc: Dipen Patel , "thierry.reding@gmail.com" , Jon Hunter , linux-kernel , linux-tegra , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , "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, Jul 31, 2021 at 8:16 AM Kent Gibson wrote: > On Thu, Jul 29, 2021 at 08:17:22PM -0700, Dipen Patel wrote: > > > > On 6/27/21 4:36 AM, Linus Walleij wrote: > > > On Sat, Jun 26, 2021 at 1:48 AM Dipen Patel wrote: > > > > > >> gpiolib-cdev is extended to support hardware clock type, this > > >> patch reflects that fact. > > >> > > >> Signed-off-by: Dipen Patel > > > (...) > > >> case 'w': > > >> config.flags |= GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME; > > >> break; > > >> + case 't': > > >> + config.flags |= GPIO_V2_LINE_FLAG_EVENT_CLOCK_HARDWARE; > > >> + break; > > > After the checking of the command line options we need a small sanity > > > check so we don't try to enable both realtime and hardware clock > > > at the same time, we will only be able to request one of them. > > > > This will any way fail at gpiolib-cdev layer. Do we want to add it here > > > > as well? > > > > I can't speak for Linus, but I'm fine with it as is as it allows the tool > to be used to exercise the sanity check in the kernel. Fair enough, that sounds useful. Go ahead with this as-is. Yours, Linus Walleij