Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4518010imm; Sat, 21 Jul 2018 22:42:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeikPtfC7cyf7KTuCVqUdVRqySkyZbk4EhDMJKIIbD9JSC5XDWJS6CHoRk7rImVLiCrP34V X-Received: by 2002:a62:d544:: with SMTP id d65-v6mr8183757pfg.107.1532238152661; Sat, 21 Jul 2018 22:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532238152; cv=none; d=google.com; s=arc-20160816; b=vTQhoScTDH58ExGpAwvuXtgDodq+uFcC+SxiVlT+Vtzgx1j7py+31fItZAo0n1Nehu AfUtg3OC1rdikxkSFBJ64FC/uE9jntNpRwBaQKWXrylPBlX42flCYx520xGFgDKBwY+Z 7JnKiCY8JKFnVaA+WqKOtlXjcjaZnPn1KN4wCIA+6LodVn8XUuNL7YXLzwq+u42boQpD TLcBTerAn3OA5SwgMUMOUnbBizKvDPHYf1FKM1DHcWVMbNBXDjyR37Rn6OZcaMgJ4O83 aPiM7QdzRl8bWFI3CbbR/ERUdgFPfto8W+KcR33Ups4AyHtwSzpJPS/Y/5PTkfQ/FjRx bBsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=hznDywjce0gJ46pCd3yAWMVdlQfrhErg8dmS2L13ryo=; b=RPOC2Ue9WtC2xQakyIG41yEF4EdYODmoY6Rh3Z/pUEztNsvDaan0xtjTRjizpHUUbe uYFPsNpyfiqH26kGORr9vWRDkcPVelEsdhu5V3PXH7XwI1S/TwbBzAGgRZGcNAKLsejh at+f8nYkAGK3yLwP+Oet7Q4j+W0I5ycOw66UxapztMll43k2/TshClsbOx2Y+wDWFDVv G+wC/tet0W5KHqvntGizZRaU9e/jq8eZ5UHDsDBR4CKXo/UgXelUYer7mR5q1Pv6/kJ7 HmNK8fMsyT/3t/Xgh/FJwJpa9a4pw2DAgiLqYtl9DYI91DjKrzUOx/d1UrU2s71FHeiR M7EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16-v6si5113881pln.165.2018.07.21.22.42.18; Sat, 21 Jul 2018 22:42:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728224AbeGVGgq (ORCPT + 99 others); Sun, 22 Jul 2018 02:36:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55764 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbeGVGgp (ORCPT ); Sun, 22 Jul 2018 02:36:45 -0400 Received: from localhost.localdomain (c-24-4-125-7.hsd1.ca.comcast.net [24.4.125.7]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B065041C; Sun, 22 Jul 2018 05:41:19 +0000 (UTC) Date: Sat, 21 Jul 2018 22:41:18 -0700 From: Andrew Morton To: William Breathitt Gray Cc: gregkh@linuxfoundation.org, jic23@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, robh+dt@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com Subject: Re: [PATCH v7 01/10] counter: Introduce the Generic Counter interface Message-Id: <20180721224118.ff26734be0f5db552afcbe7c@linux-foundation.org> In-Reply-To: <20180721162610.GA15622@sophia> References: <51b75b2b4495d4ad7ed173d91a726379bdae2353.1529607879.git.vilhelm.gray@gmail.com> <20180717204954.4b5e371603d0b40b2aaabbb8@linux-foundation.org> <20180721162610.GA15622@sophia> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 21 Jul 2018 12:26:10 -0400 William Breathitt Gray wrote: > >Also, many many drivers deal with signals-as-an-electrical-thing - is > >it appropriate for this particular driver to take that namespace? > > In the context of the Generic Counter paradigm, a "Signal" is an > abstraction for the stream of data that is fed to the counter device for > evaluation (triggering updates for the readable "Count"). In many cases > a "Signal" correlates with a physical electrical line (for example the A > and B electrical lines for a quadrature encoder), but this isn't a hard > requirement as the paradigm permits more abstract data streams. > > I decided on "Signal" to match the naming convention that appears in the > datasheets of many counter devices, but "Line" may be a decent > alternative name we could use to indicate a counter device input data > stream. > > I'd like to get some other opinions as well before I make a naming > change to "Signal" -- whether to stay with "Signal," switch to "Line," or > rename to something else. For what it's worth, I think it's unlikely for > a counter device driver author to confuse a Counter Signal with the > Linux OS signal within the context of the Generic Counter paradigm and > their respective counter device datasheet. gc_signal_* would be better. That retains "signal", but makes it clear that the symbols belong to generic counter.