Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp45637pxy; Fri, 30 Jul 2021 23:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc/wBM+xjve2lFKIBn5InDMUo2O4OHsZzvTchs7Bw543jK3fvhQxv3O22zIRTfkBsZpHFX X-Received: by 2002:aa7:c597:: with SMTP id g23mr7521380edq.340.1627712444301; Fri, 30 Jul 2021 23:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627712444; cv=none; d=google.com; s=arc-20160816; b=QNjypffTipzOkLEMeTzH7m/Jri5ya3E8+iEtSfJwedqsiJX053h+0PNBQ7Svb6ynR2 YRhMsOwpMmHoJzPwFJNICnI2PZFQqR8enHDc0dfHUK5Brgpw7oQiGKL2/vgrJFMAnDXY PujZ4lR3L5Gg9Ew2edcsQpXp8wsZFjdV4IhKxbXUCz/Y/fM3xXg/05L1JIChjvrA8lM8 N2hgsfsdT+BbI7kxbFwh+skQ6/gmv9BIzHLmLpc8sflQY3gsg/zBjUS7x8HAiFh9VG6L mAtPOtl+jDtp+ym93QHg7sErfvG2b3gRniToPIpABdMzyAW6ZFPzvN4/XiKcN6zk089c PZdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w4o8GTKb8Zatf93vHXEadq9v5OlamLv4NAJhut7CkBc=; b=cs/n8zYXyle2d3SSBpcEjPaEl4h292aiV0NH9im7TOkinvF17tcfrhUMQRUc/dxAZx 3uPW0TLXT7hQa+NXEM1ggB8hKc8PDKLgSQnleyl661EHlfgrx/abpLL25/32UUoVox3y L8FJx1Ch82EOlQgz+VC53O+Ycytg5wuvgFqu6Dj5SOk3+2Qcb7sPVIeDqnsn23vqAyHK TZS2mCCAouTXJXify3WCkW+VhyjmtKfRnSVrNeL1DoqvnT5awBHzcvlwHqrIHDg8TMDi 4jizxC+ek82ufQpaMdRtBqcHk8lV8VGjoeQKmINFbia9fYnm6P7hQ5//414YcCrMQx4b IMeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YCwMC2hL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p25si3988173ejd.114.2021.07.30.23.20.19; Fri, 30 Jul 2021 23:20:44 -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=@gmail.com header.s=20161025 header.b=YCwMC2hL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236779AbhGaGQc (ORCPT + 99 others); Sat, 31 Jul 2021 02:16:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbhGaGQb (ORCPT ); Sat, 31 Jul 2021 02:16:31 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC4A3C06175F; Fri, 30 Jul 2021 23:16:25 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id u16so5096379ple.2; Fri, 30 Jul 2021 23:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=w4o8GTKb8Zatf93vHXEadq9v5OlamLv4NAJhut7CkBc=; b=YCwMC2hLVOwrqQ+QPSrGoEMS16Wshm7+D1dBSpG5DQOXMhhYqO7+XH9dcczRFEZ28E Pv2TnZxu6G3B+88FqBJFkT0xVWJbmVQrpI6BXlUlsPukZqBKbSkBEjGOilXyZf+G0wSl fWy11sMrGOVgNMJVw9/Jpz2ox0YyNiYx+Dmnmo2I+LeU3KfwW6UY7DHBI41Ev5EcGPlf teMqk+yLfg+b56gAVnZAJnyDwlgRadzazYzNAHWbGvjOgk7rbtwgDIY6Qmuiz17Ooko6 dJt/ModJ2N92A12fKQPj56DKGk4rkxWeJNIsqQzjZHxetfdGAFxSdRl233t/QT/6COq2 wBIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=w4o8GTKb8Zatf93vHXEadq9v5OlamLv4NAJhut7CkBc=; b=a5kvumUPJfNDhchx0PANGiIaDx2VEzFeoJrGF3aLO2o0QMFmrAQ0lbr3ykNzxpoFje GD5neLcfpSqXhtAy7WilmjxY8E9XG83nW9AuVV1ld7ACr4qXEJLbOmu2yFXi8/RKJrfU dUNViD27rD1le8vBeA28Alkrm2kd+PIZ6sqE8eQXk9A/BjCgIHoo4XXEFgqDKRXY54lX 9lvG6gobAsmOGeJMLYYqdUdpe08MDc9VmCSE9cYgDKu8YSzePA8PQf+tfXqLVF8Mvu6q KCvOtwiVD8wUQxjc7XD5qn/l1xNXWpFMS3+l3lu7sYbwEI2mZiMTp90xHXXY3u0WA+km VMkw== X-Gm-Message-State: AOAM5333ZPORFbhTZtu3bezNq6AQYE+C3GlDmiZFG34UHmdFpctyVLwz hgM639/uSK12PUJjGiXCf+o= X-Received: by 2002:a17:903:1cf:b029:12b:cbdb:e402 with SMTP id e15-20020a17090301cfb029012bcbdbe402mr4068033plh.27.1627712185276; Fri, 30 Jul 2021 23:16:25 -0700 (PDT) Received: from sol (106-69-176-40.dyn.iinet.net.au. [106.69.176.40]) by smtp.gmail.com with ESMTPSA id n32sm4453203pfv.59.2021.07.30.23.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 23:16:24 -0700 (PDT) Date: Sat, 31 Jul 2021 14:16:17 +0800 From: Kent Gibson To: Dipen Patel Cc: Linus Walleij , "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 Subject: Re: [RFC 09/11] tools: gpio: Add new hardware clock type Message-ID: <20210731061617.GA12414@sol> References: <20210625235532.19575-1-dipenp@nvidia.com> <20210625235532.19575-10-dipenp@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers, Kent.