Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp26908lqs; Thu, 13 Jun 2024 02:43:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2b4EujNVZC1w70AGXwJY2yqZmqReJJGSS+pGs1+blJiTC3G6sjn2basRcx4UfrpTGwXRXwlJwmUBqzf1W97eKYrhRIWlmuxKphvuBjA== X-Google-Smtp-Source: AGHT+IFqGvmHkTHVyMh9nzvVubYvIHbywLl0mfDZQhl0F7kpQob9HbKCN04X0+5Kl/NKwD17bRju X-Received: by 2002:a17:902:e751:b0:1f7:414:d687 with SMTP id d9443c01a7336-1f83b8097c0mr54882615ad.67.1718271814180; Thu, 13 Jun 2024 02:43:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718271814; cv=pass; d=google.com; s=arc-20160816; b=HCFR2dcrRbciqP69TP+skMr93oDKNklpqINeMONNI/5hfaCwOC1jAAyvVE/fUNqiAs vrnPQikEvika3JgtRudPefOtBCWHmedjgasBG0myUPRXHN/HztukkwU3E4Bl53ItVS0k S07qS+IxHmpZorIAV4oGZ+2elcx5NiD28WWHjujIduI2VLyGCBs3587wnfiq/QZGDhbn kqMzZ0FJnfPlIvEHBSU9MEFcBfDz/UxE3jcMLaJPZPJUssBxs85JC9zDrcEVK4NLHgJv w/d8bjgFyO05Gx4YLSg6zn6ca7KzgXW8MXq3+PxmjZDPNYX5G/ZNzPGPccrNM18X/iXT TKlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XdWD7NDBH2MZHT7kAWuCQTYJgCqR+oT+j023LwQheaU=; fh=129erhEQL+uzHrnVwufEl+LaW5mklPMohyQlgZaBork=; b=GoD3v8xrRwdUZ7aUPJIAFxObjsmEYqn6nI4EDSkpY7ULt4vnB7yP6Asq9QPHXTdDM0 fLKtxNcx07yQZH1m6ftII8UrSzzrBn0VMCAWJEs6mUDQEtfZ9etOTsT2RS+UNfi3+zD8 IRPM8oaA11bmqNBlUZ5PD5pxf+DM9uEdprPGQoJcHPUYFgUma+P5OS+dP77C1GGS7Q4a Mv5lvEWqowyhA5hsjspNQOurS5e5cpvZVjNk1OFTkJcP2uXCaKXi/cEvrKyx7bif2W47 62SCseJ1H6cLvqGC3vfNPZs0UwgPPxLauzpL5I/L/iHU97sRljyeaH8ODUvbfPjz47Me ILJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=3YJu6hGE; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-212972-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212972-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ee3a0csi9585825ad.358.2024.06.13.02.43.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212972-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=3YJu6hGE; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-212972-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212972-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C8CAA284252 for ; Thu, 13 Jun 2024 09:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B10A140373; Thu, 13 Jun 2024 09:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="3YJu6hGE" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B69C713F45B for ; Thu, 13 Jun 2024 09:43:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718271807; cv=none; b=k5LfUii3YL5AqZowLvf5SrpcuhoVhW03TPjPqzuKA23lf8Js+iQHc2PrCsLoUkvIayPV+7Fy8jy790GEEODHRmgd33XJW4va5YytrRJXlETJydiRKQxgWWG1urrV0KWWmXpSHcCe4kWBdETB4enH4c6oIW4shREE+jJXMCS5VEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718271807; c=relaxed/simple; bh=XdWD7NDBH2MZHT7kAWuCQTYJgCqR+oT+j023LwQheaU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=lMKLqsE7OPOR+tqW1rEcr3vS1hra3kqGB0HalTYG2bDZxWpEUm73Qe+PEoQGpTGhRDgKJ9O4/HDoYnEvzBug0OR92PA72KY+KPfWHMyldfqnridMtIZMvIlHGO4PUtOUD+ioWJMDg235FBwJS0y/mD2gah/inOmC+lVqgeU87BE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=3YJu6hGE; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2e95a75a90eso7573721fa.2 for ; Thu, 13 Jun 2024 02:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1718271804; x=1718876604; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XdWD7NDBH2MZHT7kAWuCQTYJgCqR+oT+j023LwQheaU=; b=3YJu6hGEBkE71HsHYCKIrKkNtaQN/4hBsqkccMN6SZBLJO59BLWxMJQy5bT5h02rwL cPPYOKSRhEm3xNhUkNv0uXp/8CeXGeB5cFetfBsz+kJj0EQrbQ3pedWuG6/uDeYr7GsP NP2H9S6HfLG4GXONcEEFfbsXio2jnZ6O7wKQVaB0aNUow3AQfwHBphf1dxr40a+uTila D/Jw0rX9QDsjIyExB3dVaCm3nPp0s5vZM8jozZ/f18EBHvfYCy02JS+Muji0dsU3/16c Inj6DJ4HlMJZFRC+SY27FnD3Q+lfPckmTYmS3HH8TKkTnPqcQsFwjfRTa5b99pvwHkob GaZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718271804; x=1718876604; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XdWD7NDBH2MZHT7kAWuCQTYJgCqR+oT+j023LwQheaU=; b=Du2UZ8ppy+/b8XlOb0c+1qaL861Rqfv8YRBSxB+V0HFNDzn+7zWhJodKWMBYoM313i DAeoQ2sbhTNbNzYQTswwTxCwJEkZzJN1q7WVya7V7eRJJoLrsTfH7R7CCKniSZte1OJE izhpujqX0vwA0V4H33QliXL4vM3rUui69RQNhHzMjZEXwV/NNJUIAkZcwsHZNtZ8VhMT fApWmNrMx/MwY++gC9BVhAV3N1Vk7vBRLvSP5sw4DRQte66rSFA8qSHqVZT7RrKlgF9M nH3NfpQjgqQWpdfZXjJuTk0rslYq6Lk4SEcFbxhEep7BIb6B73gd5lqec9ZQ8TW/DOGs qbPQ== X-Forwarded-Encrypted: i=1; AJvYcCXqxOGb9iZusMg94McusKKbCBISA4GGUqwV8TSbKMqsZAunYvA+sRr4MqMRXH2jL1d9CKEaxnWliDnb1LZ+96+ZN8GjnZgapr2s8pxF X-Gm-Message-State: AOJu0Yzxs7qRehvr3r2nHdy6hmqJJKjla75fbm0T6CZgMCFJ2Oy2Ccp6 5LaZ+eGVcpry8jMFOrYixNaAsZlZ+FjI03+bNGSFAoW/7xWgGRZXPn9A8PJ/fgTj6GuDBqwqtIF GlVbnkIt7oG7fLqe0bB5/PdvseE5bqj2q12rQNWLP+ThzhEsE X-Received: by 2002:a2e:8891:0:b0:2eb:d9a3:2071 with SMTP id 38308e7fff4ca-2ebfc964d08mr25060641fa.50.1718271803787; Thu, 13 Jun 2024 02:43:23 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240610112700.80819-1-wsa+renesas@sang-engineering.com> <20240610112700.80819-2-wsa+renesas@sang-engineering.com> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 13 Jun 2024 11:43:12 +0200 Message-ID: Subject: Re: [PATCH v9 1/1] gpio: add sloppy logic analyzer using polling To: Arnd Bergmann Cc: Linus Walleij , Wolfram Sang , Linux-Renesas , Jonathan Corbet , Kent Gibson , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 10:50=E2=80=AFAM Arnd Bergmann wrot= e: > > On Thu, Jun 13, 2024, at 10:27, Linus Walleij wrote: > > On Thu, Jun 13, 2024 at 10:17=E2=80=AFAM Bartosz Golaszewski wrote: > > > >> On second thought > >> though: are you sure drivers/gpio/ is the right place for it? > > > > Actually that is something I requested. > > > > I think it fits in drivers/gpio as it is such a clear cut usage of GPIO > > lines, and it doesn't really fit into any other subsystem. > > > >> May I suggest moving it over to drivers/misc/? > > > > Misc is a bit... > > messy. I remember Arnd being very sceptical about putting stuff there > > rather than creating new subsystems, so since I've tried to avoid it, > > albeit recently more and more stuff gets merged there again :/ > > Right, and that is mostly to avoid having code in there because > there is no other place for it. Some parts of drivers/misc should > have been a separate subsystem, some should have use an existing > subsystem, and other parts should have never been merged. > > The parts of drivers/misc that make the most sense to me are > those that expose a one-of-a-kind piece of hardware as a > single character device. > > This one would probably fit into drivers/misc/ better than > some other drivers we have in there, but leaving it in > drivers/gpio/ also seems fine. > This is my point. This really is a one-of-a-kind module that also doesn't register with any particular subsystem. If anything fits into drivers/misc/ then it's this. To prove this point, I even moved the gpio-virtuser driver I'm working on to drivers/misc/ too as it isn't a GPIO provider either and merely a GPIO consumer with a one-shot user-space interface not conforming to any standards. > I could also imagine the functionality being exposed > through drivers/iio/ in a way that is similar to an > adc, but I don't know if that would work in practice or > how much of a rewrite that would be. > I could see it using configfs instead of DT for configuration and iio for presenting the output but - from what Wolfram said - insisting on this will simply result in this development being dropped entirely. Bart