From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C75CD2DCF4D for ; Thu, 24 Jul 2025 14:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753367075; cv=none; b=Y4sjUwDYM6CMwIHRr9N//sTsJcIAQ8MchbaaFAJgkGuv7o2BRH0yeH6DcaN7PA/jeZdEMIBv3lHq3aaZzyMsOy5naiYw8wHwGn67B/6KGkcjd0pLmQ6GOw3rPoSemNf9Qq9oJV9hSoJHYRFq2q0Xy5cRyukuGRjoEGZ5iH4ycOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753367075; c=relaxed/simple; bh=LkC1cgJKGtDvQAhjzwy5MpcSRJdsTaL50a5baAXwX38=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gyp+oHWRJF/fMUHVU2BMRZIyJmuNKbwbb8OWvBRRqreG5fwMVBGAuyq+NBCom4ANxvRmUuzmNycPZqxKg+H+lIofTqdCvZpyCpyVIR0cIz1PVPjMyvvoH44085/0uyhWdo80bi9ltHwNxPcnWWPOMVeTijaeuaMxTkVZAI59qpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=RAbgc+7H; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="RAbgc+7H" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5551a770828so1106238e87.1 for ; Thu, 24 Jul 2025 07:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1753367072; x=1753971872; darn=vger.kernel.org; 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=9uYFs6ImUzbg3uQ5rpuYkRYPBY5IeIE5OmGuHU/2KXc=; b=RAbgc+7H5KfZEMl3vOi6yjMsH9VcEbEVNUXo6waOWRmYSvzlbUKHYD0MhljgyA5C7n blyg6L4o2dNWj4HZvwHnQzT99oiTOhtLc3aJ6lEHUIE75k4aHH4IyCxaWXaNIKy2TrlZ 5ko2Xv5yWq+WOXI8jF4oT5/PC6JioPsoUSot6zN7r9lpaav5bV0J9GBnrthLkoUgwcNE JsW4PSsrouffI/MTzrwolbeA8oh2PoNCvAwz2G0suv4xJJknx/XIEoXMxedays+oEVVd 7ecVfqPBNv6OXtNFaWoXYjhWmv1dsvWN9stqjRpdCf5Y8UqpI0SIiRY3gj7Oh/KgtYrE lIOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753367072; x=1753971872; 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=9uYFs6ImUzbg3uQ5rpuYkRYPBY5IeIE5OmGuHU/2KXc=; b=Pjgt6SK8AvL9hVTmO9p4mQ7ohZd8L9sn5IQT3vHz7vVcOPQEU0yHdN6TXiI89I5HkE hUSeP5KXkiMherY4yo0E2PFmE9Z9YbWIQ+kOyQxBXqppOOeSm/LCofjaWzFZSGLZcyAZ Ns5+5UE1m4fRHf11ecUiVk5HWN0EwE1yqFSd8+Fw53Zqyi2/RhdkoU0KiARVk2POQm5D //eBVkU0bYFvf/AO5FrPrIRAVwhaGGdZ53H7esbRBut4Xa16fX8S0kAD+Hs1DHUv6tqJ iSEd6fQEyV2+j1clIOqDwjhX4o0+DZhzSn8ZSvmfS2riRtTsKp4D0/QR/HQTBpHKgZkN kkTQ== X-Forwarded-Encrypted: i=1; AJvYcCXUa7w4OOQb5cBBEohuROoTmjy5Y0ciUPvdtdYiGVTbXZ3hXgKWIxiW00YYsL1zIIxdVWAWNKk+YT/y@vger.kernel.org X-Gm-Message-State: AOJu0Yy1LRkr6PF/U2zNmTwZcufdubbPM5YlZsr+lftUJ4YHFXiKm5zJ m7uRor62WdKqDnxIPhVSlC+OE+n7WehBBWkXkuiSh8bhN1bP/XsSdrYJ3FzCJV07glGwZT664dK bj8WxeCOcptYqDdKr2xOcOHgFy5N9Pm387ynQOGKl7g== X-Gm-Gg: ASbGncuzLTXi/THL/xed22iL9V1mHLEeyPSR/lLuIV7ek8AmADIbKHwBw5Pei/1Ey5A H6Pkg/RLpCaw4rBP7dlTdaKN5DItv6Eh9oodqWn8qwt/QNoGXsRAGPaxrAYqzlJXcHEpXafIiUY 46sbKXLJCwymzuVVSHAq6smUTyDUH1mJk7HZB2/tB0/SJEczLoaj0nKmV+4A8V0JC6uOwYRpQkc B7VWvLHrMoh7rKpr5yG1TdtPLg9WExkuoKIfcQ= X-Google-Smtp-Source: AGHT+IEjwXFB7CZ/N5EXNvwHZZzddVKutYpP2ET2ny/nwGsfmJfNYNi3SOVPdhlxjJcNdBxyefwRwGoXwjpYGshc1FA= X-Received: by 2002:a05:6512:683:b0:553:aadd:1987 with SMTP id 2adb3069b0e04-55a513bf637mr2308389e87.30.1753367071796; Thu, 24 Jul 2025 07:24:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20250722153634.3683927-1-arnd@kernel.org> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 24 Jul 2025 16:24:17 +0200 X-Gm-Features: Ac12FXySjq2DCPp7nTSI_XCm4U1HSCz6foMhOKdxkvw-uj6diG2D0UDnGBdWXp4 Message-ID: Subject: Re: [PATCH] gpiolib: make legacy interfaces optional To: Arnd Bergmann Cc: Arnd Bergmann , Linus Walleij , Peng Fan , Lee Jones , Koichiro Den , Geert Uytterhoeven , Andy Shevchenko , Alexander Sverdlin , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , "open list:GPIO SUBSYSTEM" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jul 24, 2025 at 4:22=E2=80=AFPM Arnd Bergmann wrote= : > > On Wed, Jul 23, 2025, at 10:39, Bartosz Golaszewski wrote: > > On Tue, Jul 22, 2025 at 5:36=E2=80=AFPM Arnd Bergmann = wrote: > > >> #include > >> +#ifdef CONFIG_GPIOLIB > >> +#include > > > > I want to queue this ASAP but do we really need this guard here? > > consumer.h already guards against !CONFIG_GPIOLIB internally, right? > > I was trying to not change the behavior here. linux/gpio/consumer.h has > an #ifdef check but has the #else portion with empty stubs that can > be used by any driver that includes it, while drivers that include > linux/gpio.h never saw the stub version. > > Arnd Ok, fair enough, let me queue this and we can change it later if needed. Bart