From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 8C9862DC34B for ; Wed, 12 Nov 2025 08:06:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762934789; cv=none; b=pOr3h5da8gjrP85eNWyKAbCSzH/Ly9sY6vjzjGc647dSEc1E+Y9MOwF4N5lkZDB6KU+5pEwFT93TUbnntVcWJamTUbIRcF53FX5xpAEVHVAjFtZRells6+PiUYgNWqvdI9ReTd//Y2G8BweHKIUhPAWMDfhh1JMRbcf9JCuUWRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762934789; c=relaxed/simple; bh=CsuCzn99HhVaXWmVpBege6OrJ/pMPiZ2yYvkZ7pOFR0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BBHj50i+NrX9kcB/Ut3V0PXUCIP+6cd7T7BXqAIM6V/0NP/08Bp9xlLFaa3BaDG/Mk3sTG4kIUqPJ46tZ9v2yCGwRv2ixdtXaHgdXNQujmS2NFfLqw8iQBaBRdhas6/YBRGVJciDTXOL+EAik7lOiOp0eZQO4zqnIavsYkvSjGU= 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=xDKk4dHE; arc=none smtp.client-ip=209.85.167.50 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="xDKk4dHE" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5942bac322dso513674e87.0 for ; Wed, 12 Nov 2025 00:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1762934786; x=1763539586; 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=CsuCzn99HhVaXWmVpBege6OrJ/pMPiZ2yYvkZ7pOFR0=; b=xDKk4dHEe1YiZnUKxUz2ru/zaNKC8evp/f/YqNWi7rusRi1mfcv0LRunxxJoUfOmpI rGFuvyz8x20C+U02FpQHSPX0RxxbyuJWUuupKuuWy/F6OFsUY1qjQwOrMvXUGnp68Fan gMaOxY8N4kj+bRxxkTnQCRC6p8emi3Lgsf1lV0Rox1BBIIbr+5TOEjImrQbqwPyn7/4f 15JYsZyhdDMBe1JGNhwgHHmwqgbfvKkN5PKoVMNku1MpoA6c51ITcA9JtRR1Ua7xTvoB ougtYVY2+tdxRtMfUZ+9MgunsHx3PFYBV/4MByM4hxmcRRQWKjbuSbW2gCe5QkXthoe2 19Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762934786; x=1763539586; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CsuCzn99HhVaXWmVpBege6OrJ/pMPiZ2yYvkZ7pOFR0=; b=qZOJLNJ0ni0t8hwU5goxLyAFz8I7w0/YKfyWvHlJl5ofwx7cJB5jELyLraGCOv0Osi /EwFWogUs7UoywXyBMz5nqZdHU8KpdMGZ2NAJBOLVYXvarrJ3SmoOAh7uMvqcpsUsmxX BllyXq6J1OGsipb3FxuJgUpej9mGbM69QwYzd844vnZDu0oIzEnzM/fpQKhlVqZm8qf+ w8OxxMlV/JI7DU9DJlJBYpecFPnMyxy6I3x61elafS6iFLBJ67+3e/iEg7YtsgPDvk/z tT/PNcVDhmw8/DgFXabXCh739hgTt7gaxSH1EEkQArsNjZlu2pmfn0IQ3xNZi3zP8aTK BhRg== X-Forwarded-Encrypted: i=1; AJvYcCVFCn+9ZOy5xRwZZZyD55T/DXkhtQbfhtodRtsQgH4YK3LYQPwTNvP0e/q7l3TbFkBbyohzdKk8N6bRPJdt@vger.kernel.org X-Gm-Message-State: AOJu0Yx3fliYGqSPx81hh6TcuqdsLy42W3nL1jcOAQ5xwsS4ea6EszXh WZanSvKINh9DnsMd/ba/96r9fdyNKFFnib0MvQGvcU/4rlgFEONg++J4LIvcUqZhKqKysOzKYlU cekSfxuF88FzMZSbrKtngyHk5DlY6twxzNkPPRi+Sjw== X-Gm-Gg: ASbGnct40959Z+VExOVL6M/oDzGIJCdVl2kxq9kl2arzbNoJBVXwP9woa++s49Eg2uG rAm6STxrd+q0KwmhOy+JvF186jEk0QZB9eNe8/d+RGcfqOYiVNgTGrakSTapjApzfWIC7pTP7YT CgK0OcK+x4HQZzQghq0u8vA1sMEF0/dY+TiPvCGvHH8q3vfBB4OjFkQ0kmFyJo/2flEW7urGHFE OmIBmj2VxZEYaQhNQArR7HSHVOMk/vftdsnRSPBe2TsUbTyZHPLRWqV9ISaWbBWllgWdFg4gLpp /LkvRsoHIyxMw60= X-Google-Smtp-Source: AGHT+IFGOvlOzvk9piywId0UEm/LoEe92kaATxaPyyaUwvvWEVZS+cjBT7dXjw6jb/DtZt422ITz+COnEZi1kuHwxHY= X-Received: by 2002:a05:6512:3e1a:b0:594:3039:2d16 with SMTP id 2adb3069b0e04-59576e2ca55mr736184e87.32.1762934785669; Wed, 12 Nov 2025 00:06:25 -0800 (PST) Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20251022-gpio-shared-v2-0-d34aa1fbdf06@linaro.org> <20251022-gpio-shared-v2-6-d34aa1fbdf06@linaro.org> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 12 Nov 2025 09:06:13 +0100 X-Gm-Features: AWmQ_bnmO8YFH80sSD6rPVFUgANGxGc1BYRZ0qoygt-PZMj9Pyi0gMYkuFaH7pA Message-ID: Subject: Re: [PATCH v2 06/10] gpio: provide gpiod_is_shared() To: Linus Walleij Cc: Kees Cook , Mika Westerberg , Dmitry Torokhov , Andrew Morton , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Saravana Kannan , Greg Kroah-Hartman , Andy Shevchenko , Catalin Marinas , Will Deacon , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Nov 11, 2025 at 11:44=E2=80=AFAM Linus Walleij wrote: > > On Wed, Oct 22, 2025 at 3:11=E2=80=AFPM Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > Provide an interface allowing consumers to check if a GPIO descriptor > > represents a GPIO that can potentially be shared by multiple consumers > > at the same time. This is exposed to allow subsystems that already > > work around the limitations of the current non-exclusive GPIO handling > > in some ways, to gradually convert to relying on the new shared GPIO > > feature of GPIOLIB. > > > > Extend the gpiolib-shared module to mark the GPIO shared proxy > > descriptors with a flag checked by the new interface. > > > > Signed-off-by: Bartosz Golaszewski > > Reviewed-by: Linus Walleij > I think you wanted to leave this under v3? Bart