Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp751743lqs; Fri, 14 Jun 2024 04:59:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfrt+wiCew4Lbb3MMnOAiebPcmyx39Y6nafOEPFvZUEZM0be4W2c6u+JAoDFPW1j3ZZhODhyy+V2GOpKIJyHyBA0R6UBUmnYh1x8d3ag== X-Google-Smtp-Source: AGHT+IGOzroG8qduCc8dxExyvbGgS90zZ+ef1i6TqRWPIW6zWfw/78bcm9W6v2B8YFcCOAfDhRuO X-Received: by 2002:a17:906:ca55:b0:a6f:1efa:dd75 with SMTP id a640c23a62f3a-a6f60d4136cmr164336066b.43.1718366363918; Fri, 14 Jun 2024 04:59:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718366363; cv=pass; d=google.com; s=arc-20160816; b=DBIKySk5SjF8hLLS0d409/aKx6oh/69ntc+y+2et0UMwe8QkSSlql5KsxWV/apKWg4 OWqcJWA9q3PEo9EZraovntPLTTMAk1mONQhXcyjZqDGXLuIQxq5HrKg/g2s/Dx4u8aGz 5IJC1rBVqnDTHEppJ6LXUsiuFdHyXek0W5yrxgxQyC/6peXfcNTK/lcpjfBHfH6kmBqC Qrw9m8qgyAhVJq7/O/3CUxw1A+OSyw7w+NAFeBL1FXCyaxy85AjTj1XBeqo3vky1/fUj XuHI+ckXmmwMstQsgGeCIwdgGmD8TQeKQjAN2JghKLm1lehzFX+WYWLC2ziM5xao6thh fLZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=7b44UsTTnIwI+o5WpcLnCvfHXK4AEkMV5k8wm0K0jxg=; fh=TSmemYnmfJES5+blkaYPmq7VOIY3WuSP5WHpP70fXOc=; b=i+1fvxtje5LGcNhqSZcyDZAAXHzOjTaJhip8rVHh7yH52RRanQV4e0MjAEQS5AGk+e aKEunmNICJBKVobuexw6C85dWLuyxpMrxMahZxtGAzdnDJEo4SdBhdidh878Obcafc94 GZDxhk7BzV1T4NvT4tKkK9gXWoicaSQbWk9hMJHqAxL1sSZCdWPx9h4KkJvwrzqrP42S 98NCD8EJwisqcyryxjTfQosIU+ALlIWOj/L9LVB4IkPCryD+4nDiOESbjRPq5XpBrAFl umozGbn3aVPC5no/kAysRpF+XJFTvajrrdAeQKu7GqkLMiOJq06R79nqXsKvZQI3C3n4 1Ong==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=0BOFF8xk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=khq5QuRQ; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-214856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d21936si165618866b.165.2024.06.14.04.59.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 04:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=0BOFF8xk; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=khq5QuRQ; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-214856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9F4F81F21A9C for ; Fri, 14 Jun 2024 11:59:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46BC1195FE1; Fri, 14 Jun 2024 11:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="0BOFF8xk"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="khq5QuRQ" Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 469911DFED; Fri, 14 Jun 2024 11:59:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718366354; cv=none; b=QNT2PZsC1zm2ZGynN0uwyYdeBqNhwjuIFT7u+yvNOcB/MhQU0WSn1hcRlX90Izv6HwIQSsfZW+bUNPujBQr88eD2SxgN5ircbgkFrOPF3W7poSH75fKE8pj1lSetJvGMedpbkVj/ZY1RAakx3miHVEx4js4efuf+7sw8OSr01Fs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718366354; c=relaxed/simple; bh=FZ7oU3Tvb+cR/zcsfVum+Isg4olsT4e3Ap9YPQa4Pgs=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=LcZMU/t5ZIAeogyVb1TabfwRASOKlvpjEJsVz9yUiTHTjkHR4QldEM/c0PcrmBbbYvjr0FGRGtS60x/coOOzoohJGTG+u1lmiKknxDGIW7cWjoODjjnK6O4LUruwK1zlvwKIjPA0WWtVuqUXPldOHcjAdH0UQKeP85bC/6V6CAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=0BOFF8xk; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=khq5QuRQ; arc=none smtp.client-ip=103.168.172.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 3525713805E2; Fri, 14 Jun 2024 07:59:11 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 14 Jun 2024 07:59:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1718366351; x=1718452751; bh=7b44UsTTnI wI+o5WpcLnCvfHXK4AEkMV5k8wm0K0jxg=; b=0BOFF8xk3KuQzvyKSCxjq7MNh/ SFw5xQ8D0C5Ida9m9tVEQjF7KQ002CChQSu+d/jfrvyjdQqITLpt4CBntFrsiKRt uGa8qN+pjEFO/QafVsLVrKjRugqwPehfFKkgCPBLsPKpBPI5Xu36DmKeqp9A+HrI 82gwTv8Vcsox5Ko8T1CHYuTrsSEaGtNNmmYwdssz8FIMuNYRAu0PrZypueoDjy9V u/EWrgYyCpsGNESNemOs4Zx4DZMESjq8xny9yPjVNjpef1FFvdNAzZL6xX7v7Qvp L3tvL52LFWYFeMMNO7doShLnQUEz4nWFOAKnLrGYUKde9Ks5Ba5L+VttnLJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1718366351; x=1718452751; bh=7b44UsTTnIwI+o5WpcLnCvfHXK4A EkMV5k8wm0K0jxg=; b=khq5QuRQ67A17Cqm/uDAbYb/2IxFAYYxcI1a/yN0VIzI d70yYdP4osCGVIYzhB4Jz5xwY/hC9+Po06loxGvds+8I3sFox5X4N28+aqK0CA3P FjpwiuprjIgN4cGWwmsfTivEUE9AhAu0L+M47kZ90/+ffEFb6aVWIR1BkllvO/Ro aECLXQG5FU/1M0krMTKRYObFQTMAzoKsEb/x12+2l+y54ZCvuOt+o6x9f8uu9aZR rEK9fKnFw7HKuZjpDPhCBUPOWn9Bgi00H77v4JIhotGdhrDX512R9Pz7NKg5mxho LnidyQjT0xpy7OcdJ4SC71+vubwMAkWnvJz6rn/FDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeduledggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9CE1FB6008D; Fri, 14 Jun 2024 07:59:10 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-515-g87b2bad5a-fm-20240604.001-g87b2bad5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <3bb9b39c-c15f-49e3-987b-26cd47e05f3e@app.fastmail.com> In-Reply-To: References: <20240610112700.80819-2-wsa+renesas@sang-engineering.com> Date: Fri, 14 Jun 2024 13:58:46 +0200 From: "Arnd Bergmann" To: "Wolfram Sang" Cc: "Bartosz Golaszewski" , "Linus Walleij" , Linux-Renesas , "Jonathan Corbet" , "Kent Gibson" , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "open list:GPIO SUBSYSTEM" Subject: Re: [PATCH v9 1/1] gpio: add sloppy logic analyzer using polling Content-Type: text/plain On Fri, Jun 14, 2024, at 12:03, Wolfram Sang wrote: > Hi Arnd, everyone, > >> I could imagine treating both gpio-virtuser and this code as >> a gpiolib extension rather than a consumer (which is usually >> part of some other subsystem's driver). > > I have difficulties seeing this. For the analyzer, at least. It does not > extend gpiolib in a way another consumer could make use of it? That's the same as the chardev support in gpiolib: it doesn't provide functionality to in-kernel consumers but does give an interface to userspace. Arguably, integrating the logic analyzer into the chardev device itself would make sense from an interface, as you could define it as ioctls and mmap instead of the debugfs interface. Of course we don't want to make it a first-class interface because of the reasons you explain in the cover letter, but it would totally make sense to me to call it a debugging feature of libgpio instead of calling it a standalone driver. Arnd