Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1871517rwd; Fri, 9 Jun 2023 03:32:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NfoQiG1sf1KenApOSgrph2mzmgYGTb3qA6IIz57uu2VsajfxUneghXF+q77Kl18J48Rqv X-Received: by 2002:a05:6808:31a:b0:39a:5ea3:6b16 with SMTP id i26-20020a056808031a00b0039a5ea36b16mr1135730oie.41.1686306732828; Fri, 09 Jun 2023 03:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686306732; cv=none; d=google.com; s=arc-20160816; b=ENjogDVATtqWKIT0zeEGtH1NJoHqUhsiMvnN6o7SYuBNIQZPIyqwAmnQ3Kj4aEH350 RMz5Jx4W9KWEySQU3CFoMbprmMArBuReFq9PjOtay1sU0PJmHiSBnRfbvQvfLd3XHyF1 Nk+qdWJPjz2VnfkD2ohfvts5KNtAA8A0jESHgbfWY9z5wdUzcuo3cdCOW3hExtwlpYTx PIKQglaLbRU46IEKUnsC15/pfDLtF8TwdNzmymdX/EnbwL0lf4259iLu4IjUi+pR7vmH l9ifraYI6oJZCigYPKd4jjLpnoKemZ9kVXJjasMgjAmziarkgGPf23YZXDilzneMPXY9 LAzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OZOvjl+KYnuwjPj8wMvZkMia9UoF/x6M2Pm8GzNj1fU=; b=Jt4RtZcDptVLgvBiWqXUoC/PZXczloSC7VUqcjA32yzgNgA0HUZ01v5GBI/jthtffj Ta5vlXN13hwH6DACDSkjr/1cF6P+A/aKzp8P19RKf1GecbaIJu8n5g7drBRKlmMC2yyl r2ahXvbjTVA094UQjoH84bnEzlgK8njcRvumtAiof7J84P1osChDBFDQ3kf7D4v/rQSy dp5rcnoaGDl1ClYI21mTpDoJSJ/ASx3jWLH4zl+TmoUOdAd0FiKrOlrSuAtBugobYF0o Zdu2QVoFpvKWLgz8OTEsQ43QuhG6KJn+eyHb4LN01bqe6dM76dxPV8/+OgsQcHpshWGf O0Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=HTewIAYg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a17090a670400b0024dfb95d54csi2497093pjj.177.2023.06.09.03.31.58; Fri, 09 Jun 2023 03:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=HTewIAYg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241702AbjFIJpU (ORCPT + 99 others); Fri, 9 Jun 2023 05:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241872AbjFIJop (ORCPT ); Fri, 9 Jun 2023 05:44:45 -0400 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE9081BFF for ; Fri, 9 Jun 2023 02:39:50 -0700 (PDT) Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-43dc3f77accso517566137.3 for ; Fri, 09 Jun 2023 02:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1686303550; x=1688895550; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OZOvjl+KYnuwjPj8wMvZkMia9UoF/x6M2Pm8GzNj1fU=; b=HTewIAYg8quf786duI/CctcxA7gPrI2VugNo0oh1CvFgRXeezqSxn/G2tzv6nbA5nr KGSya9okyuMEBET7DW1QschhzujiYprvRtM2dXCWdO8EFZgbc0LzHQzx0nBEvozGCo0d p//9u1NrJ6wG0OM+phgZMV6sE8nKY9yb0ryKm2WH9ZmTEg4uD0BujMVAcGr5wcMlWvy8 AOKLeEVMQm2QQmPVWBeNmY6HQKwzBZA37bno5fkZYynw71l2y1LTyuZn8FdUUTUzHhXb iYm4HV/kXqvHHeruvbE/Zk43KLw3xkC/d4qqRmoeWrgyZMJR0aSrIchxFYTU3TtLmKbO RhoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686303550; x=1688895550; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OZOvjl+KYnuwjPj8wMvZkMia9UoF/x6M2Pm8GzNj1fU=; b=h8M2tkIG7loY28vCm0Hj2iR5SeKl+SRtMQCrWhZy8Oyyka3Q3efT7Rsfhdvs2RHMmT 7jCSgA24tVlQE8WbDA9lCuUEL1oo1rPD29YxxA4hEplRXu83rk8E/H6BeYxG+SWoXBEQ mjTdjzJqm0V09+yt+iDI0Jg3TK+gJ9yK5VDV0PTA2x6jCqKM5QeWSucj03RN9JDANiAY kbkA3UVkCZOWKB922WSfouM4Gc5CivcIMZG0AABMcJDjLwGSikJg3siOILwliuW7VCnh jrPPpaIKcLyYh04EKNjfKM+3lQ4zhFLrn0Rh+Qxik6Xa38OSyWTu1XSaqvbGjhDOGcQR Ic3A== X-Gm-Message-State: AC+VfDwoTGzJFx3iwSeGptqAoJkg/jNYKuUYQEcp4YpCsM++IR5j9wn9 qgpDxtJoQ2oRhSL/NSNZfRa/VAArwtJSGXJuk/rxSp/zwRaswLkR X-Received: by 2002:a05:6102:408:b0:430:e0:ac2e with SMTP id d8-20020a056102040800b0043000e0ac2emr498462vsq.15.1686303549994; Fri, 09 Jun 2023 02:39:09 -0700 (PDT) MIME-Version: 1.0 References: <20230605125810.61456-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20230605125810.61456-1-andriy.shevchenko@linux.intel.com> From: Bartosz Golaszewski Date: Fri, 9 Jun 2023 11:38:59 +0200 Message-ID: Subject: Re: [PATCH v2 1/1] gpiolib: Do not unexport GPIO on freeing To: Andy Shevchenko Cc: Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 5, 2023 at 2:58=E2=80=AFPM Andy Shevchenko wrote: > > Since the legacy exporting is gone with 2f804aca4832 ("gpiolib: > Kill unused GPIOF_EXPORT and Co") there is no need to unexport > GPIO on freeing. Remove that call. > > Note, the other users of this functionality do that explicitly, > except one SH and one OMAP boardfile which don't free GPIO anyways, > so it is safe to drop the call. > > Signed-off-by: Andy Shevchenko > --- > v2: mentioned OMAP boardfile as well > drivers/gpio/gpiolib.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c > index a8da38ee721a..7a9c9934365a 100644 > --- a/drivers/gpio/gpiolib.c > +++ b/drivers/gpio/gpiolib.c > @@ -2117,8 +2117,6 @@ static bool gpiod_free_commit(struct gpio_desc *des= c) > > might_sleep(); > > - gpiod_unexport(desc); > - > spin_lock_irqsave(&gpio_lock, flags); > > gc =3D desc->gdev->chip; > -- > 2.40.0.1.gaa8946217a0b > Ah, you already sent a v2. I applied this one. Bart