Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp960404rdg; Wed, 11 Oct 2023 10:04:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGchLWw0OBtLUlI6hjNJSYIzdMoSPqs7xpnZhTPgC92o5AJyeaiM/ZAR6vZy7IrxdA7l61E X-Received: by 2002:a17:90a:b945:b0:27c:f21b:6342 with SMTP id f5-20020a17090ab94500b0027cf21b6342mr4419846pjw.22.1697043871121; Wed, 11 Oct 2023 10:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697043871; cv=none; d=google.com; s=arc-20160816; b=J4icT+CxnTUjNfjwVGAGg2pfdEfRDJ3m3dnfcY9IN0zIAcc1jhGk4DUKkdNkqoe/Wy s7f4YYZAHtMLSFYGft8xfzKor2OYoT74Q3HuecShCZ3C83Vrmwh8QHIvDw0EcK+dLmA1 KJGT7MKGr4rCceXL3w1IMDRDN3+GgP0yWKct25XkvwnuPNRG6NNN5vEH/ylW7xUSNd4h 3X21Bp4Ep0OOVP+d3u36hScI88ULgA5jAKTOKwNd1HO8kbmp3Pi5HhRHUftLrgizxvvN HNHiQvMGW23OKoGBnZy/T/EN7CsrKy5WQAlb+a7zU7VztjwtdN251rbyv7Ka52AK2mIL Q/kg== 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=sl0g8gpFd8TcDw0gBnOEEhhcRt5JVH+M1u3I+7nv/EE=; fh=Fn31UWMv6ipTTGqCqppDZwGK10Xit8vHpFDSYzJzFDU=; b=YlOwerwlx5Jg4oYa+esx3RDPOuinDtbjIMRO+Zc7dKqRYSySg9w/bohDh8mVt4mFSU HyeysGORqEqG9DXjFeOSy5Zv2/kzHWfgH6NJYmGP9m0NBdqVGvxumLa4H4zvnBRh5ekT d+zGV16qrvBv5vGU9g/CeP6y+Pz5XypiXn7JP3XVEL5N7VJgFIadxUZ64TDH5Uuiu6FS M6Ex5AjK5Bsq4BiXFLzpb2SzXkXucySp7B3PEMTQnSa9yr4TwgpBOtaZe3mBluzBYhXw EegdQyMlgnxprBkunAKlRmD3k4fWQIfPGbVVLbvcNRGVffH05ckoolEp/yxQ/gn/ltgD JHbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AcVRNWfa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o4-20020a17090ad24400b0026cab818aa2si221460pjw.100.2023.10.11.10.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 10:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AcVRNWfa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 7202080707F2; Wed, 11 Oct 2023 10:04:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232080AbjJKRER (ORCPT + 99 others); Wed, 11 Oct 2023 13:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235118AbjJKREQ (ORCPT ); Wed, 11 Oct 2023 13:04:16 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08EAB0; Wed, 11 Oct 2023 10:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697043852; x=1728579852; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ePh04Na6ms40UGUVjEcx0AciBqEAGwUgPoKQ8ajHuPg=; b=AcVRNWfaDcTAKLfkgbr19E8NjGs4EXMD5uyNBHcdKiS4Yn6PA4zfPodo CiR/3ZT1yWWQfrg6EhcCJEd+o8cixBC+Gymo3gQRCyFf0h8FHT0M0XgfP GQ/eGxPvkVFZc5IAZLKyqIeFc2xqaQ1i0kL0Gtr0+bLZwICXVv7r0LV6s UgRAF6NjnSJkH52uY+8angYtCuHeOwWw5vQk0WG+DjruLAzx5dlLECzIx Vax9Z3ACmQjePWCgImNdwfkZf6skHprF1EJK62VLXAE8lIHWmq9lxtxhp hzIOrdmlH7gJ6QH9Wn443/3WmbnDxAhVtYae4fr5qmGa9pF/+bYB/geHT w==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="384567730" X-IronPort-AV: E=Sophos;i="6.03,216,1694761200"; d="scan'208";a="384567730" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 10:04:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="1001195052" X-IronPort-AV: E=Sophos;i="6.03,216,1694761200"; d="scan'208";a="1001195052" Received: from unknown (HELO smile.fi.intel.com) ([10.237.72.54]) by fmsmga006.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 10:04:08 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qqccv-00000004n80-1umS; Wed, 11 Oct 2023 20:04:05 +0300 Date: Wed, 11 Oct 2023 20:04:05 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v2 00/62] pinctrl: don't use GPIOLIB global numberspace in helpers Message-ID: References: <20231011120830.49324-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231011120830.49324-1-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 10:04:28 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 11, 2023 at 02:07:28PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We have a set of pinctrl helpers for GPIOLIB drivers that take a number > from the global GPIO numberspace as argument. We are trying to get rid > of this global numbering. Let's rework these helpers to use the > recommended gpio_chip + controller-relative offset instead. > > This work is split into phases: first let's introduce the new variants > of the helpers. Next: let's convert all users one-by-one for easier > review. After that let's remove the old helpers and rename the new > variants to take the place of the old ones. Finally convert static > functions in pinctrl/core.c to using the same signature and to top it > off, let's remove now redundant wrappers around the pinctrl_helpers. > > This series introduces no functional changes in drivers so I decided to > not spam every single driver maintainer anymore. ... > pinctrl: intel: use new pinctrl GPIO helpers If it's going to be a separate patch at the end, please split it even more, so we will have a lean history for each driver. ... > pinctrl: change the signature of pinctrl_gpio_direction() > pinctrl: change the signature of pinctrl_get_device_gpio_range() > pinctrl: change the signature of pinctrl_match_gpio_range() > pinctrl: change the signature of gpio_to_pin() > pinctrl: change the signature of pinctrl_ready_for_gpio_range() For the above Reviewed-by: Andy Shevchenko ... > pinctrl: intel: drop the wrappers around pinctrl_gpio_direction_input() I believe this one can always be done on the driver basis, please split it to three. -- With Best Regards, Andy Shevchenko