Message ID | 20231115165001.2932350-1-brgl@bgdev.pl |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp2668001vqg; Wed, 15 Nov 2023 08:51:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKcvsTvPowuVulNwxaoWPeczkpH+unjdV3AWwCJYPiaCSF5cGP1GPz4Sni7YJkXKO6tyyE X-Received: by 2002:a05:6a21:99a9:b0:158:143d:e215 with SMTP id ve41-20020a056a2199a900b00158143de215mr8421770pzb.1.1700067068616; Wed, 15 Nov 2023 08:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700067068; cv=none; d=google.com; s=arc-20160816; b=VePty10Chme1FWRqBN531yH4IoxRhxmxaZ6v3PjDMe256I4YNrS/VtFBFZzYHi7juJ 2gr+mWGrrZuUb7AUpZr9eHJBQFa1vl0k3PxkKhjQI700xUzOXwF28W1hgIbCRaOtMoMw WBZLRkm406bCv2WgIftOP8f8LcEFL7vSLd4C5DeDq9lWtdraosKxAt9i684XXC7voxi3 zbWxgDNVVVAL4+YSAtUz1LHJGJtoumTSZxMv3gg2bYbzP1gtiA2IhKuYymBwuI9mEh7X KMmokYrKVrnoWp6HcbSHfMkCtU1R2DuVh0OEllgx4IWL7BCi0+S8YpE9rwFftby2JXK5 roIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aC5w+N5Heh6KPJfLTmPFbd48gQJyNdKHiN7BtvnhWX4=; fh=kOxmq+prcfKKX/dgMaMxTb6TRjzyc//QKXZBiaS/a94=; b=cYvArSRXZ8PGkgmH2W0l57zgDzCl5E2UwIhzKamriPP3nfZOdtVJ8+NuqjqVsFElRq SQFgGaSrWKPnkh5wx/qEaW4Q12EpuVVqIJ2pms4Lz28fh71VOXT2XN8Yq+LV1EZI+d3M 0zSOpI6cvWue4QRBBCWLSKO18nNbgxOENcS785UvRA5Ui/d2DdtnoPLPdKKySX5Q9ZuK tNqmzgApucm5wou0WVMPOG1hOE49cA5TAH7pBfeYuLOIN7vCfSARDnjJl6umquimAN+e gTmWmdVMevC1rCPHvLcC4Cqa+jmHHAM513i5OAWxRBMhuX2NIBX2yPAaISYCYCHtx/0A PhmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=IE6usIVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l189-20020a6388c6000000b005b8f1c4aa49si10593310pgd.895.2023.11.15.08.51.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 08:51:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=IE6usIVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 217108082B97; Wed, 15 Nov 2023 08:50:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231938AbjKOQuJ (ORCPT <rfc822;lhua1029@gmail.com> + 29 others); Wed, 15 Nov 2023 11:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjKOQuI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 15 Nov 2023 11:50:08 -0500 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA8D2126 for <linux-kernel@vger.kernel.org>; Wed, 15 Nov 2023 08:50:04 -0800 (PST) Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-670e7ae4a2eso9390336d6.1 for <linux-kernel@vger.kernel.org>; Wed, 15 Nov 2023 08:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1700067004; x=1700671804; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=aC5w+N5Heh6KPJfLTmPFbd48gQJyNdKHiN7BtvnhWX4=; b=IE6usIVbu/wLj2HfOCYgU6Y38K8qnbu6Ff5lfBZpWHUEfzDvn++xf+Gk4/tmyJZX8I vUjKrPk80iZ0mMKyISeIsPfLtEFj4naapo6pP/0D51bzVCxv21Tzyo7Qosvgwaj7Tiqu 9DVS4RNTZmOmGOeOwco6hxtdVntxLu28fmC/ro5JmdE4IQ6pt/ERlzWDB0UUS9oBhL6i OI/EA8+I2pOEpkYwbD/uLD6N0lqtt0vR5hlJvhAwIfZkAhaOmdepp0NjXJ21C1KNdrhy KVc0MNeoYHqNolgfJkCaQlj8ZoBqn/KdbjBtunSlRShbw7w25UMx4rFcucRG0SeGZu48 kJGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700067004; x=1700671804; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aC5w+N5Heh6KPJfLTmPFbd48gQJyNdKHiN7BtvnhWX4=; b=rYmF1C1Ox4cx60kxcwFu+YA5OR9ZtwlPnqpr/y1O4TlcF8MvSMbcvNIeT/n3FUkebn pTdRN0EJoCA3pZxGHMDu6KqSyAdmsitnSzw41Eu3XTkKZys9zw4TNKj+mx8lUv5Bi5MY OFGXALNBR3XUbCnmjii4iBYj4Y/QvG9Uz8RiFbmScSem3BeTjN/PP3Ras7B9R5NYNmMQ H8uGE+6brY/+RtyYWdgNiwTEwLCrumdImjcCMoHpbxWWuohHaMGfjuaNArtZ+pZPh80K 46KIeCkaB+m/tgiLQWFPXtXFZzMC/0U3obCzwYrqF9fqbsVhWdD7LbE/tkVE0xTbeoqB In3w== X-Gm-Message-State: AOJu0YxuoTM3lKB/GP3myBfQV44gGsxT85oH9ngUgVJIjAtBIzout9Xd Km4W88p+qyl+Pf0KOegjrZYVzA== X-Received: by 2002:a05:6214:c2c:b0:65a:feb1:ec46 with SMTP id a12-20020a0562140c2c00b0065afeb1ec46mr12565814qvd.6.1700067003998; Wed, 15 Nov 2023 08:50:03 -0800 (PST) Received: from brgl-uxlite.. ([12.186.190.1]) by smtp.gmail.com with ESMTPSA id mn16-20020a0562145ed000b00670a8921170sm658781qvb.112.2023.11.15.08.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 08:50:03 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Linus Walleij <linus.walleij@linaro.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH 0/3] pinctrl: don't use gpiod_to_chip() Date: Wed, 15 Nov 2023 17:49:58 +0100 Message-Id: <20231115165001.2932350-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 08:50:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782649526850849284 X-GMAIL-MSGID: 1782649526850849284 |
Series |
pinctrl: don't use gpiod_to_chip()
|
|
Message
Bartosz Golaszewski
Nov. 15, 2023, 4:49 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Let's start working towards removing gpiod_to_chip() from the kernel.
Start with pinctrl. The first patch should go through the GPIO tree
and become available through an immutable tag so that we can get more
conversions in this cycle elsewhere.
Bartosz Golaszewski (3):
gpiolib: provide gpio_devie_get_label()
pinctrl: stop using gpiod_to_chip()
pinctrl: don't include GPIOLIB private header
drivers/gpio/gpiolib.c | 14 ++++++++++++++
drivers/pinctrl/core.c | 18 ++++++++----------
include/linux/gpio/driver.h | 1 +
3 files changed, 23 insertions(+), 10 deletions(-)
Comments
On Wed, Nov 15, 2023 at 5:50 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Let's start working towards removing gpiod_to_chip() from the kernel. > Start with pinctrl. The first patch should go through the GPIO tree > and become available through an immutable tag so that we can get more > conversions in this cycle elsewhere. Fair enough, maybe an immutable branch with all three patches? Probably best to merga all three into both subsystems I think. Acked-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
On Thu, Nov 16, 2023 at 2:43 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Wed, Nov 15, 2023 at 5:50 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > Let's start working towards removing gpiod_to_chip() from the kernel. > > Start with pinctrl. The first patch should go through the GPIO tree > > and become available through an immutable tag so that we can get more > > conversions in this cycle elsewhere. > > Fair enough, maybe an immutable branch with all three patches? > Probably best to merga all three into both subsystems I think. > Nah, I don't think I need to pollute the GPIO tree with every pinctrl patch. It's enough to just merge the first one into GPIO and you do the same in pinctrl. Bart > Acked-by: Linus Walleij <linus.walleij@linaro.org> > > Yours, > Linus Walleij
On Mon, Nov 20, 2023 at 4:06 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > On Thu, Nov 16, 2023 at 2:43 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Wed, Nov 15, 2023 at 5:50 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > > > Let's start working towards removing gpiod_to_chip() from the kernel. > > > Start with pinctrl. The first patch should go through the GPIO tree > > > and become available through an immutable tag so that we can get more > > > conversions in this cycle elsewhere. > > > > Fair enough, maybe an immutable branch with all three patches? > > Probably best to merga all three into both subsystems I think. > > > > Nah, I don't think I need to pollute the GPIO tree with every pinctrl > patch. It's enough to just merge the first one into GPIO and you do > the same in pinctrl. Fair enough, but I need that immutable branch for patch 1 so I can merge the rest on top. Yours, Linus Walleij
On Fri, Nov 24, 2023 at 11:01 AM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Mon, Nov 20, 2023 at 4:06 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > On Thu, Nov 16, 2023 at 2:43 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > > On Wed, Nov 15, 2023 at 5:50 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > > > > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > > > > > Let's start working towards removing gpiod_to_chip() from the kernel. > > > > Start with pinctrl. The first patch should go through the GPIO tree > > > > and become available through an immutable tag so that we can get more > > > > conversions in this cycle elsewhere. > > > > > > Fair enough, maybe an immutable branch with all three patches? > > > Probably best to merga all three into both subsystems I think. > > > > > > > Nah, I don't think I need to pollute the GPIO tree with every pinctrl > > patch. It's enough to just merge the first one into GPIO and you do > > the same in pinctrl. > > Fair enough, but I need that immutable branch for patch 1 so I > can merge the rest on top. > > Yours, > Linus Walleij I applied the first patch (after fixing the typo in the commit message) and sent you the immutable branch to pull. Please apply the remaining patches to the pinctrl tree directly. Thanks! Bart
On Fri, Nov 24, 2023 at 8:40 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > On Fri, Nov 24, 2023 at 11:01 AM Linus Walleij <linus.walleij@linaro.org> wrote: > > > > On Mon, Nov 20, 2023 at 4:06 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > > On Thu, Nov 16, 2023 at 2:43 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > > > On Wed, Nov 15, 2023 at 5:50 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > > > > > > > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > > > > > > > > > Let's start working towards removing gpiod_to_chip() from the kernel. > > > > > Start with pinctrl. The first patch should go through the GPIO tree > > > > > and become available through an immutable tag so that we can get more > > > > > conversions in this cycle elsewhere. > > > > > > > > Fair enough, maybe an immutable branch with all three patches? > > > > Probably best to merga all three into both subsystems I think. > > > > > > > > > > Nah, I don't think I need to pollute the GPIO tree with every pinctrl > > > patch. It's enough to just merge the first one into GPIO and you do > > > the same in pinctrl. > > > > Fair enough, but I need that immutable branch for patch 1 so I > > can merge the rest on top. > > > > Yours, > > Linus Walleij > > I applied the first patch (after fixing the typo in the commit > message) and sent you the immutable branch to pull. Please apply the > remaining patches to the pinctrl tree directly. Pulled it and applied the other two patches on top, thanks! Yours, Linus Walleij