Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1621911rdb; Mon, 2 Oct 2023 16:00:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKITzXbb85on2prVNs7sjhPT/f/8rbv52F2uiKDtpDfod2CeT7pS5K9/83aOVMXS11RxZ/ X-Received: by 2002:a17:90a:ea92:b0:279:19b7:9be7 with SMTP id h18-20020a17090aea9200b0027919b79be7mr9865140pjz.5.1696287640688; Mon, 02 Oct 2023 16:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696287640; cv=none; d=google.com; s=arc-20160816; b=lYnR1rgomStf4Tu1x3MI0IwTrTg56wWj8QLijYCtqcsah14cdD8ljzuEOxlbPeqywy cCPqD0sbQRV9ELklq+6SKIeFtWK6B0zEA4g4TtO4Z2DmyNMcw9FBxpFL/X26qaJpu/p6 oILjY49cp2uZww1NbaTySdUeAE1ILvN11QDfsCgZbFRdY7RZEeLq3inuCUguQfoElUk+ msPCPTQigL6OSYr2Qpea6VKvCaEGs0gzQb6JMVmj+hPU/TxRdqtqsgBxo+jLvg48ujwX zuvrI5zerDJuEPFaNaaGcUSs6QGQysnR8nnJU5ztCoFOfiLbw7o4o/YfwqRM9DZ21AeW YsGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6xmBBVsXkjIKLXUkUpSyG0X+4kRilD+9w0DJxbhi0DA=; fh=qWQtwVV+WCm0y4KZqI/bA4ZEXdjz163lbD01PBlh7VU=; b=k3XRhbbi4sdgkzWN536CRfbXve3Ne+oWeEBxetatYVz9dNeRhOuvG/HzG3ZOx9apjx 59FnJVWwZaI7EvhAC55YoiofXADBD0AvHR90MWpMMCASX6/4p0z4d4ChUp0faHTc9LiS mYBPaE0zjvUaWt+pc0nczwzR6bjjVkUA/xFYW6S4gEEOkk0ESOf1YzV0tHa+jeGeLNNm D+MxfUsRT/qt1h8AerEAwstHLKT/37gYEGLI6WawA04kvcZmfVmX9Mdq3W+5u1FPzVoQ 6cVGW9IDf7wvUp7ve01jVRvikGk68+8o/RLL2b/kwSFu+bBt3BoYafw7gwLroez/xMeG uwTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XZUVAB5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h1-20020a17090acf0100b0026d60f1627asi8619880pju.173.2023.10.02.16.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 16:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XZUVAB5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A9F3B8087260; Mon, 2 Oct 2023 02:05:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236005AbjJBJFY (ORCPT + 99 others); Mon, 2 Oct 2023 05:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235983AbjJBJFV (ORCPT ); Mon, 2 Oct 2023 05:05:21 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35C5C91; Mon, 2 Oct 2023 02:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696237519; x=1727773519; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kfqKs+0cNmvI19UU8b/Nv0Di7NOKQZPlZ3XU9/IVcM4=; b=XZUVAB5QEREZh8zhcUF6aAhlg0eA0fIy4VDXR3ALwBmCGuNiLvABswDS pngHX6mQZgTibNLveAIvvAYKI0l/w4FLO+re487AD8koNM3XhuD6uf12D VAvT5UN+uyhovkh43jj+7+ExvNl8USruHwQ6jw4qdiBxuxxM7/F9DcP05 RY+KWswMxkJBtnX2FN1Q99+bNcaABrJTUDq0gMpvoUPHmmAXU32dZECEH t4g/EWY2s9DuqS9RaJu3wc06Xs20I+txmxoQgtD2ZXnZ1zIIhSvwU7afE eUVEZRZAH/zcoAcGJO1g6r80otf8in4pnKsTgJT6ZueGa+UsLyfy8rm0E A==; X-IronPort-AV: E=McAfee;i="6600,9927,10850"; a="386478982" X-IronPort-AV: E=Sophos;i="6.03,193,1694761200"; d="scan'208";a="386478982" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2023 02:05:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10850"; a="700282974" X-IronPort-AV: E=Sophos;i="6.03,193,1694761200"; d="scan'208";a="700282974" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2023 02:05:15 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qnErX-0000000279P-3dcG; Mon, 02 Oct 2023 12:05:11 +0300 Date: Mon, 2 Oct 2023 12:05:11 +0300 From: Andy Shevchenko To: Kent Gibson 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 02:05:28 -0700 (PDT) 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 -- With Best Regards, Andy Shevchenko