Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6064036rdb; Thu, 14 Dec 2023 07:28:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFV4lC6HQvoRqNjjszPIPKRsCkdSDg5S1FHNtODkWuU6JNjhMeqhqcA4F3p3Kl0ZeCbwLMI X-Received: by 2002:a17:902:b20c:b0:1d2:ec00:fb9d with SMTP id t12-20020a170902b20c00b001d2ec00fb9dmr4988914plr.44.1702567691286; Thu, 14 Dec 2023 07:28:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702567691; cv=none; d=google.com; s=arc-20160816; b=Vz55JqnsMrehHDewmJsxM7Q98na6Kd5rS4WO4jvclxFyO/cTqrHxa7g99ifvAf9v5o wW9Ws3GjMaYCzZ6/r77D17LiHIVQYZvicVw8THBNU4WQm1qTcko0iPrfUB5ubNsexBAl IV7r4fBa27ZkUEKkGPfuXgnjOZ86/wLlzNt8Hd+krv1RHEtCdl6Mzq7FZnsGwPZs7XGK N4bnTxtDGm7maDZYzuQQzDF5o4glu2CVvmpnKD/WBt6oKAwOS+OwGbGppes0ZNuBpuLM 5abG8GmI0eDSVTPogmg0cLcVGLHVSZtf/j4AhVFHGCvoKlNBpNsCjPbqMg+4ILD4hSp9 rPNg== 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; bh=djRmKV1nPRZBYwE7WzWwncau7UjWtHUgvQvXsENlqnE=; fh=BiTih3HBn05OJvpBeKJCJhFgvirybBPBq65CdTV6sMo=; b=wnl5SxXz+r6M0Tx3bXw/J0Y8E/keu99PH83zXMV4Sc+oBBdH3AOUMMX7hHbEBaYHWv MMUy7Ypb7Au+JJ1fJ7GSC9fhXoJbrOv9nDRWZtyC2Nf4zcO42XeiJ7k0KyrUU2LdLgkQ Ijjmwit9WYCB6FmBas0ypneHlJ+7crzrsQQD4EO7W6B6FFvmLW8MSvC4J3s700uLrDRY 7EL0LmCy2Aj30n9ZEllWZLuYEx+dH+a1AdPBn5hRxA67aEjMI0+rrGQEr0otDDixQp3d DvRarWPOMkCMJ9bzt0vVx3Z3aLRwumx6f30Hrdy06TsFJGGqyngFZS+x28noApMyM3lw 2jBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id a6-20020a1709027d8600b001d08c079196si11257532plm.36.2023.12.14.07.28.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:28:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0769A833E1C7; Thu, 14 Dec 2023 07:28:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbjLNP1z (ORCPT + 99 others); Thu, 14 Dec 2023 10:27:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbjLNP1y (ORCPT ); Thu, 14 Dec 2023 10:27:54 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B43510F; Thu, 14 Dec 2023 07:28:01 -0800 (PST) X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="397917991" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="397917991" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 07:28:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10924"; a="892507728" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="892507728" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 07:27:58 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rDncy-00000005sVg-1Tny; Thu, 14 Dec 2023 17:27:56 +0200 Date: Thu, 14 Dec 2023 17:27:56 +0200 From: Andy Shevchenko To: Kent Gibson Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org Subject: Re: [PATCH v2 5/5] gpiolib: cdev: improve documentation of get/set values Message-ID: References: <20231214095814.132400-1-warthog618@gmail.com> <20231214095814.132400-6-warthog618@gmail.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=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 14 Dec 2023 07:28:08 -0800 (PST) On Thu, Dec 14, 2023 at 11:23:01PM +0800, Kent Gibson wrote: > On Thu, Dec 14, 2023 at 05:12:36PM +0200, Andy Shevchenko wrote: > > On Thu, Dec 14, 2023 at 05:58:14PM +0800, Kent Gibson wrote: > > > Add documentation of the algorithm used to perform scatter/gather > > > of the requested lines and values in linereq_get_values() and > > > linereq_set_values_unlocked() to improve maintainability. > > > > I believe this is based on the old discussion in the thread where I proposed > > the patch to convert this (unreadable in my opinion) code to use bitmap APIs. > > I believe you are correct - that the code is unreadable in your > opinion. And I noted that you were the origin of this change in the > cover letter. > > I'm not usually comforable with this level of hand holding, but I made > an exception in your case. At least it helps somebody to understand that, thank you! -- With Best Regards, Andy Shevchenko