Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1418176rdb; Mon, 2 Oct 2023 08:58:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxUuUx9S/fXcFXCrysCrfwM0Hj9KXr8+9qMt5IrGyFu8m6Cm11ngRg3OBJVqUz2sUXQP1C X-Received: by 2002:a05:6a21:32a3:b0:15e:10e:2cc3 with SMTP id yt35-20020a056a2132a300b0015e010e2cc3mr11748549pzb.60.1696262289488; Mon, 02 Oct 2023 08:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696262289; cv=none; d=google.com; s=arc-20160816; b=ZLss8xfsPy4Cnapa1yWUhfs8amwcxBB+iCkzxOKjFGvb6RptRUeHQcutrebprfB+OP Rm1LCyGWXYaImb6gXLx17uIkvUWovjf2QoOeShvLYuquE1EuAoC+5zwkavDtC1gto4C/ uZM31SGT8Mlo/T6O3PPbOJZkxifApLzioL1GkCJrmTxocUEe5TxqxhdEdTxY7j0DwMzQ XlSDUJNGWe9QoJsQ0gnI8RLN2CanCVizxkrHFlrlLEODlFJ+pgMGOrzmO48a487k0cj6 gr5V9zqLHUcdN++ySyV5y7nGJ2p6sLN884gQyii+UpYqqoUE3BWUlhJc/5fl9lA7Vtr8 iMRA== 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=/qXBB0HN9EE99f58WPeeJJXkwIcpeq4j/UjdEMsKhjw=; fh=GhAzZS0VrcP9Wgh2MyACsocSO4ETsMarljI7HvQ0MVM=; b=uKfL6qoaDB06DczVrsnawk0si1S4QewokbyROIHnCAyzzRgC3opwnv93JJ/xS7S3o2 2DTsBJ9JqIQSwZDVNko6mMvYn8ZT7Sr1odAz6ezRNlth0BYlT+UuN9d78j7hN8pHGNtO x9Wi66n7iqEIEzXmSTkRbZWxqGx7exbLDid8I2VD+GdGsNBVH9aXRfVFFUPClvk+OlTw 962pL1N0mL7GEXfpPDX82ryxWi+giJ8FTuMx8LdZrFqlZgk0DNjvrU12EuwfiUtO6CQ9 zajrpQmTfC5Q1Voxx82uwWbai0mtSV3M+9Gp8AKiWULNfDs1NoDV6YOa6LmfYnQsP9SS PKJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HW/t03Tr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ci13-20020a056a0028cd00b006933b29f560si13220649pfb.46.2023.10.02.08.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 08:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HW/t03Tr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D66938075B3A; Mon, 2 Oct 2023 02:25:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236074AbjJBJZS (ORCPT + 99 others); Mon, 2 Oct 2023 05:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236033AbjJBJZQ (ORCPT ); Mon, 2 Oct 2023 05:25:16 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E455FA4; Mon, 2 Oct 2023 02:25:13 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5859b06509cso2061975a12.2; Mon, 02 Oct 2023 02:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696238713; x=1696843513; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/qXBB0HN9EE99f58WPeeJJXkwIcpeq4j/UjdEMsKhjw=; b=HW/t03TraU2l+PsoVrnL1idz2UWo9Jk86iLHAgjbKidGXH46NZlD8D2VhMm+mCfavW Bh3+7FJzTR1nsOyeMJ25go/MIcfh8ZOO0Pz0kw8C0GsCYU9ZzqSLuVxRY1zEFxrTolg9 MvwPfljt+Ds17ROUgm1J3WbOrq+ISZqSXRiG/akeLct3ezdykAa51QDg3eWlYVYHRN3D UpZ9UR4GzsCMHf9u2zJIWazpQQeH2lbhaiTm6OMUqkUpf51G6glHSNsEIy7jqB2QFRpZ 9WAAPsrFvvPPoHndr6AhWp44C+AcBrMs8uTBe14zF/7IvPG33Mfz2a9bk+yVqN9NixIm jfUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696238713; x=1696843513; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/qXBB0HN9EE99f58WPeeJJXkwIcpeq4j/UjdEMsKhjw=; b=WXMmjFLaVFFA6B3ZyK+852dNuFBlEVu+BlzrldDKmAMa2HOPQ5H7Uln9fBGdkZp2g+ fKUj31AMhxDkngozUyOltbZiR6DDTar+8XhD+5oIuLufmJ+YnC7f+UJMaGTS3Unr+T2J s7oFT1KeQfb/r9rADf8PNj/1x7Tlr+Ddu7pPBYv8ooa1VKtlJq+l3MzfjS/eoKS7MoX9 qlFu8JzGDs8+aqekO98QoIOragMFGlfiF1OKU27pmHxSA7y20o1Ds9vD+S0WqOTqjCli U2DjzDR8RHz+1i3DJHCv43NYmNdGlJBywzlvDUYnzatmoy9s7tfWFBY2S6IazqnaSXH+ wTNg== X-Gm-Message-State: AOJu0YywfkL404E3jr/sqVAXvw8Su8qxlcYCnrUfFBWMW4OEk1ya6CWE ArwZS5WHYdWQ8/IQx0+Wu8s= X-Received: by 2002:a17:90a:d513:b0:274:9200:3973 with SMTP id t19-20020a17090ad51300b0027492003973mr8047443pju.36.1696238713240; Mon, 02 Oct 2023 02:25:13 -0700 (PDT) Received: from sol ([118.209.204.34]) by smtp.gmail.com with ESMTPSA id 25-20020a17090a031900b00279060a0fccsm6387016pje.9.2023.10.02.02.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 02:25:12 -0700 (PDT) Date: Mon, 2 Oct 2023 17:25:05 +0800 From: Kent Gibson To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , Yury Norov , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Bartosz Golaszewski , Rasmus Villemoes , Marek =?iso-8859-1?Q?Beh=FAn?= Subject: Re: [PATCH v1 5/5] gpiolib: cdev: Utilize more bitmap APIs Message-ID: References: <20230926052007.3917389-1-andriy.shevchenko@linux.intel.com> <20230926052007.3917389-6-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 02:25:40 -0700 (PDT) On Mon, Oct 02, 2023 at 12:05:11PM +0300, Andy Shevchenko wrote: > On Wed, Sep 27, 2023 at 10:23:12PM +0800, Kent Gibson wrote: > > On Wed, Sep 27, 2023 at 04:59:34PM +0300, Andy Shevchenko wrote: > > > On Wed, Sep 27, 2023 at 09:49:35PM +0800, Kent Gibson wrote: > > > > On Wed, Sep 27, 2023 at 03:17:06PM +0300, Andy Shevchenko wrote: > > > > > On Wed, Sep 27, 2023 at 09:32:11AM +0800, Kent Gibson wrote: > > ... > > > > > > Yet, it opens a way to scale this in case we might have v3 ABI that let's say > > > > > allows to work with 512 GPIOs at a time. With your code it will be much harder > > > > > to achieve and see what you wrote about maintenance (in that case). > > > > > > > > v3 ABI?? libgpiod v2 is barely out the door! > > > > Do you have any cases where 64 lines per request is limiting? > > > > > > IIRC it was SO question where the OP asks exactly about breaking the 64 lines > > > limitation in the current ABI. > > > > > > > If that sort of speculation isn't premature optimisation then I don't know > > > > what is. > > > > > > No, based on the real question / discussion, just have no link at hand. > > > But it's quite a niche, I can agree. > > > > Let me know if you find a ref to that discussion - I'm curious. > > Here it is (read comments as well): > https://stackoverflow.com/questions/76307370/control-gpio-from-linux-userspace-with-linux-gpio-h > That question looks to me to be confusing how many GPIOs can be requested per request (64) and in total (effectively unlimited) - thinking they are the same. That could be due to their desire to use the gpiod_chip_get_all_lines() convenience function with a chip with more than 64 lines, rather than because they have an actual need for the lines to be managed in a single request. So that doesn't look like a genuine use case to me - just a "what if I want to do X" question. Certainly not something that would warrant a v3 ABI. Cheers, Kent.