Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2578599rdb; Wed, 4 Oct 2023 05:46:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8Va42+JfdYX1urXVWe+lK2OV+q0c+phdUnfdlXWkU/HHNsC73jNXypPKdZM4sq0G7apk1 X-Received: by 2002:a05:6a20:9790:b0:15d:149f:95ef with SMTP id hx16-20020a056a20979000b0015d149f95efmr2170798pzc.51.1696423599013; Wed, 04 Oct 2023 05:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696423598; cv=none; d=google.com; s=arc-20160816; b=KUMShRQlH5hgp711AC2/8CpJycO934RWb/aBgfvjerg7AxIHcu+J6jaPiFit9SGLb1 //jp83KdqjJBVyu0pnIO1lfiBVdhHN+p+WOdi2PDzHaV/W2GmooOhfrtmhFe7dLrydr0 GTubFWE5OPGqwggaZzxHB42SQ6J6jyD6opAM1u0v2uwoadM14hTQd3NlCVwZ7/Bd9ARX waLdfMnE0Gv2+ERrC0xRHz8ZTREgRuwsbGCEQxVCJKCITbPV+eEXl5sTpoccF59J/Exw RxpW8wzSee/fA8qTL1VaXC4bMN1vvlrzVI+CZqm2FRYwR5nyHxAaoWpIsKNqPOZqjIiY 882g== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+5C6oMsC/sMHhuoiBdEhWfkDiSocHPn2CUuhfqcQTiY=; fh=oR8ZQ0z+ZlZlaV2+jyZwpaPNan+XZoJkFqKcBuPZX9o=; b=AWhI59Kc29KRtMU89ZPnL1W+gDmOZ9JudxDy4DPIrpr3Yga9nEpL6dghltWvGTJBEb YECEHKPPpaPNVngkMPEGbCva1SkI0EbsjbsPJSWEHID1SQrShBfggNJ093V6pmhiH13Z UtlzQU2tou8pZODvdaSiSb42NOzNh3BFHQFEgsKr34bFjuA+kwRkoQRnbPIPemfvtKRU EeDuM6T6oSw8YUm7AGySnHwoa3kX4DDHeddUwXyPgjkp0YACSKWpMjfKZLaWiiS6nRxj lds95y7PYiatyVne2jXHEFne0Yy1ovdIYQVmeRa9+4Jv8scgHcuKJ5o1/2MHRJv8c8xP 04Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h1-20020a170902f54100b001c6139bf846si4049154plf.394.2023.10.04.05.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 05:46:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 pete.vger.email (Postfix) with ESMTP id 92BBD81B17D9; Wed, 4 Oct 2023 05:46:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233193AbjJDMpv (ORCPT + 99 others); Wed, 4 Oct 2023 08:45:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233088AbjJDMpu (ORCPT ); Wed, 4 Oct 2023 08:45:50 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB87A6; Wed, 4 Oct 2023 05:45:46 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="380434375" X-IronPort-AV: E=Sophos;i="6.03,200,1694761200"; d="scan'208";a="380434375" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 05:45:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="751266672" X-IronPort-AV: E=Sophos;i="6.03,200,1694761200"; d="scan'208";a="751266672" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 05:45:21 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qo1Fg-00000002lzt-0GOm; Wed, 04 Oct 2023 15:45:20 +0300 Date: Wed, 4 Oct 2023 15:45:19 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH 30/36] pinctrl: remove old GPIO helpers Message-ID: References: <20231003145114.21637-1-brgl@bgdev.pl> <20231003145114.21637-31-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=0.5 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 05:46:36 -0700 (PDT) On Wed, Oct 04, 2023 at 10:49:25AM +0200, Bartosz Golaszewski wrote: > On Tue, Oct 3, 2023 at 5:21 PM Andy Shevchenko > wrote: > > On Tue, Oct 3, 2023 at 5:51 PM Bartosz Golaszewski wrote: ... > > > Old variants of pinctrl GPIO helpers are no longer used. Let's remove > > > them as well as convert all static functions in pinctrl/core.c that > > > still deal with global GPIO numbers to using the gpio_chip + offset > > > pairs. > > > > This patch does three thighs as I see it. > > > > I'd argue it just fold the code that lived in old functions into the new ones... > > > First of all, it silently converts to RAII. Please, do this separately. > > ... and while at it, it already switches to SBRM because why copy outdated code. This is too big thing for "while at it". If you care about that switch, do it beforehand. But at bare minimum it should be a separate patch. > > Second, it shuffles a lot of code between old and new implementations. > > What I prefer to see is what the subject tells: only "-" (minus) > > lines. > > Third, it will become easier if you name the "new" functions better to > > begin with, it will help a lot here. > > I'll wait for Linus to tell me if he prefers one big squashed commit > or a fine-grained history (I prefer the latter) before spending time > splitting this commit. Definitely, changing code to SBRM is out of scope of this series and should be done in a separate patch at least. -- With Best Regards, Andy Shevchenko