Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2647252pxv; Sun, 27 Jun 2021 04:38:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUhHoXe/ycDr5hDWRa1w75on4GbY3mcRC872PFHpfWZpj/VwLcAd5+VJ7rjM+BWhEca3KR X-Received: by 2002:a05:6402:5114:: with SMTP id m20mr7052659edd.174.1624793931005; Sun, 27 Jun 2021 04:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624793930; cv=none; d=google.com; s=arc-20160816; b=SgYhDe9v9t/7kzOTs/8e26yA0htaUnTCgCt8Hl41qN/SFpMQEU2ZamvgGUrocI/kyQ C+b8M2PuZnRqlylkaLcpo1H/Tnpqx/0QdkEEc0+MSv33ZGyLmZVAvsrV0wulSUymcPPf f8iC55Vfkz2muz7fLU3AnF6eJ4L5M2USrfB8nNMLav8J/9IOKyIln6bR+YWzUtMdf6Yf pmih/ydIR+9qH5gFlH4D+qZz6OKcmnc0VmQ28khkcb0j4Z/0MMtTqP05TFvar18wji0F vbanVAoUlgQ8EWrVctzZrDiBHcNxo6VnjJFFOLGkzVP5eWDHgf45qmo7QxTsNPWaTWcL OmOA== 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=L0uluB7HuQhsw7mGnLWslYA3uy3EG1MTHEbuGazF1rg=; b=GZFSNYuJvVdMW8BPHXLmLOh1IrBUYb5BuvbeHQsxv0kZ/UJqZgVnxVTbwqhtoPJhpj OPmG6+rALMoWxWd8UVpp8TiHJPiFkBdL9qaL4aGp/SGjl9GHr/FNFOjNztPNWwF2IncF ulHZhVrd1EYnf4cBDew2rVlK6hBUXDpc3xUC+40m3VvF3AiSiuQlCxgKt2SKAs+RfIIg X3uF63n3MFeK9C+/yaiICB6JxCD2DYU00oJf20Aj5PTPd/txjPs4tT0My3V3UoxcBZ9R S1y3do6xADXI3D8r/nlViIHmQriXo8iuiIB8H73FjHMkCoFIy2Hj13PS4BEhbWLvjPjR /L6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ePrWJTf7; 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 f24si10857688edr.606.2021.06.27.04.38.26; Sun, 27 Jun 2021 04:38:50 -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=ePrWJTf7; 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 S230193AbhF0Li6 (ORCPT + 99 others); Sun, 27 Jun 2021 07:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbhF0Li5 (ORCPT ); Sun, 27 Jun 2021 07:38:57 -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 941A8C061768 for ; Sun, 27 Jun 2021 04:36:32 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id t17so26194129lfq.0 for ; Sun, 27 Jun 2021 04:36:32 -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=L0uluB7HuQhsw7mGnLWslYA3uy3EG1MTHEbuGazF1rg=; b=ePrWJTf7MzJcYP7/RoZK6gO7JLRBO7zov1scQSv9IVmTZKotCrKZoFil5Br5uhC/mq LmsZKu5JQrdFYFzB2L1VY8HZqJjae/32EPCP7RIsqJVyGu8BpM/KdvFHyofUzkEGy7yQ xy/7kIRtpt2O+sotuqaMxLbTySSIaoe4lry2oJKnKu+Rahjuf0c2wow19vmAlrlXT0js sXrkKtHJeBtoguCVvVQNJrLVqvGtORkuiXhNBzPe2EDsx+3SuJ8tgRQ2b3lqIY85Tbe8 SKo+Z8vVKo5d+6UPMHPSxjAChI3zdgwGPzM332aDSNCggqFnPvIIgQP53lyKzRLUgXc4 O7oA== 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=L0uluB7HuQhsw7mGnLWslYA3uy3EG1MTHEbuGazF1rg=; b=nJ+9j8nAsD7mRF5+dA8gIsvkITRYlqQXRuG9PTHKar/hd4yBHJN/YbjsvUx7knDQms 9UtvtU64wqdGOqhtkvQ+AtczKOBdnOLpyj7trkdUKQH6kpAcMPBmPGZZ4q2pgIJgWfdV hD/3IVweZsRYMmipO47nevf/pW+fANqVYL4PsrApF+bLDJAqtnrUCrALlwzD+LSiCNcE wis+5/nCwt3BAPXsMxdQADa57iachxJZEccAZ8qKKx2Kqw2R9T32RAzcsdEFnOvJjWk4 Py1UkQLL+kAIfkw1CnffSfBrKyXI4zI/4ioAhEm0AT9/+CmfsI4x8UrgJLSpe7fFUniZ /ppA== X-Gm-Message-State: AOAM530OAy6tcR9eqhhytYVF9U7tLlfTqiGmKYjue9nbuUSygV1m13iL ZkfXVQX8TFeSfq/ieGSp3V6DINSyvUqprHrJFqW6gA== X-Received: by 2002:a05:6512:3c9f:: with SMTP id h31mr5354921lfv.465.1624793790690; Sun, 27 Jun 2021 04:36:30 -0700 (PDT) MIME-Version: 1.0 References: <20210625235532.19575-1-dipenp@nvidia.com> <20210625235532.19575-10-dipenp@nvidia.com> In-Reply-To: <20210625235532.19575-10-dipenp@nvidia.com> From: Linus Walleij Date: Sun, 27 Jun 2021 13:36:18 +0200 Message-ID: Subject: Re: [RFC 09/11] tools: gpio: Add new hardware 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: > 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. Yours, Linus Walleij