Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp888730pxb; Wed, 27 Oct 2021 14:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaCUbmDgymTC1krVfYc6b7lWTnCnejEeD4d4UhGubXyDpjH7NDNi6JAb4NSX3Q0NfWwssA X-Received: by 2002:a17:907:c27:: with SMTP id ga39mr84008ejc.217.1635370277219; Wed, 27 Oct 2021 14:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370277; cv=none; d=google.com; s=arc-20160816; b=PGBiHgRBs8pQuYoiltS5QqTqzU7cmoJxg8YigerIXp9Gnsfc8eB/Ru29M78Uns4eKF vxkFrsMaS5R+06AfG0PKMJJfxxXStdVX2+U2U+VoYXeaUBtItBovLDShUDV1+skYFycF 8nKHTlCUOMib95XuTlBfnqzv0vGUgyRMfgcCXCueX27mSugjOZcM7pBGQNoC4KfsRfQ5 1jDo8W3WAkw1vFhylcslNbnwtu1Cf6Q13wHhJTtMfrRheCKQ650BkPisxfRt3xFKIu7L 7IAWPs0T0ohhgskJiGRHD6DH7E/7qxPp5LaIWAu+IwWosdq0YDTWWHpNCRrv0C/TpgNG tN8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=cv3IcHnNlahP+LezCFcTvbfUlcwZLi0+li0AqGLVFGE=; b=z7pIrcfcTmmLWh6aVbV+ZJ6U8R8a21u6Q2AxUuEJUrFXw/qj+Tcob0H4TDPiQtTLJl Xj7YgEHvp7ms3Nn9AHLS4Ll6Sf6SST104rC3VEbvRtiO3QnepecpQ/oBnSayAzDHTK24 scaL+Mh5iGPQFgI31VMdPNKkMx1emM744EWOy7pJHcgJG1z/shwYjoKgsJr/laO43wRV aBJQ4b5KrMVBNH865fUCzLUrfCCDaFyGraZmvUFfNGGovyGaf5xuEleP+/If5W3kEEWy nA9MnQGdicloVU0fLAHcLVUBaVX0jcPsvoKTK8A+61KfOAIG4MVJ/Mzw4Iz7OBlFwpR9 ueGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=kBd4OUVO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si1820447ejy.753.2021.10.27.14.30.53; Wed, 27 Oct 2021 14:31:17 -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=fail header.i=@lechnology.com header.s=default header.b=kBd4OUVO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242765AbhJ0PdE (ORCPT + 97 others); Wed, 27 Oct 2021 11:33:04 -0400 Received: from vern.gendns.com ([98.142.107.122]:33144 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237741AbhJ0PdD (ORCPT ); Wed, 27 Oct 2021 11:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cv3IcHnNlahP+LezCFcTvbfUlcwZLi0+li0AqGLVFGE=; b=kBd4OUVOWU8PuBf4IQZg37wSWb XKc3sF3eABsVwpEE50St+lRS+P8v6zXC1pNn6dMnTqT0n9T7IEhNb9c6m1CQr+Dm1StOqljILhy31 MygNt9PmmdW6QH/4R7uKygrkCmccxIj6dX0sx+/cyeL4WGsBCg/kuJXAih8SfaDMo2tBGP1yHChVf R6dLbHxoPp2imcSois+aBI154KXcE1rEULTnxKOko90cZJce2Ws0JP7x8EaLNHXh9RfcweGmu+BOx AhrS1VjA1sKMFFeOlHCVQzFimHgPZm2Gy8U1K4dCAo0A18kj9NZ815zVLmSi+BHkGorkphcVeB5Sr Tg4VjUpQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:42878 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mfksm-0001ad-OS; Wed, 27 Oct 2021 11:30:36 -0400 Subject: Re: [PATCH 4/8] docs: counter: add unit timer sysfs attributes To: William Breathitt Gray Cc: linux-iio@vger.kernel.org, Robert Nelson , linux-kernel@vger.kernel.org References: <20211017013343.3385923-1-david@lechnology.com> <20211017013343.3385923-5-david@lechnology.com> From: David Lechner Message-ID: <6e96cdd9-d1f1-6861-59eb-c4e6b9a2ffb9@lechnology.com> Date: Wed, 27 Oct 2021 10:30:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/27/21 1:46 AM, William Breathitt Gray wrote: > On Sat, Oct 16, 2021 at 08:33:39PM -0500, David Lechner wrote: >> This documents new unit timer sysfs attributes for the counter >> subsystem. >> >> Signed-off-by: David Lechner > > Hello David, > > The unit timer is effectively a Count in its own right, so instead of > introducing new sysfs attributes you can just implement it as another > Count in the driver. Count 0 is "QPOSCNT", so set the name of this new > Count 1 as "Unit Timer" (or the datasheet naming if more apt) to > differentiate the Counts. You can then provide the "unit_timer_enable", > "unit_timer_period", and "unit_timer_time" functionalities as respective > Count 1 extensions ("enable" and "period") and Count 1 "count". > > If you believe it appropriate, you can provide the raw timer ticks via > the Count 1 "count" while a nanoseconds interface is provided via a > Count 1 extension "timeout" (or something similar). > Sounds reasonable.