Re: [PATCH 3/3] drm/panel-mipi-dbi: drop GPIOD_FLAGS_BIT_NONEXCLUSIVE
From: Antonio Borneo
Date: Fri Dec 04 2026 - 10:11:00 EST
On Tue, 2026-11-03 at 14:33 +0100, Bartosz Golaszewski wrote:
> GPIOD_FLAGS_BIT_NONEXCLUSIVE is deprecated and will be removed. The
> preferred way of sharing of GPIO pins is relying on the GPIO shared
> proxy provided by GPIOLIB. There are only two users of this driver in
> upstream DT sources and both now select HAVE_SHARED_GPIOS so we can
> safely drop the non-exclusive acquisition of dc-gpios.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> drivers/gpu/drm/tiny/panel-mipi-dbi.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
> index 60cd65cae41d8d4f4f6e5fbc57d5d34058ca4d38..6f09b723cd7c352b0a1ea9f11a2e58052978cf0d 100644
> --- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c
> +++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
> @@ -418,8 +418,7 @@ static int panel_mipi_dbi_spi_probe(struct spi_device *spi)
> if (IS_ERR(dbi->reset))
> return dev_err_probe(dev, PTR_ERR(dbi->reset), "Failed to get GPIO 'reset'\n");
>
> - /* Multiple panels can share the "dc" GPIO, but only if they are on the same SPI bus! */
> - dc = devm_gpiod_get_optional(dev, "dc", GPIOD_OUT_LOW | GPIOD_FLAGS_BIT_NONEXCLUSIVE);
> + dc = devm_gpiod_get_optional(dev, "dc", GPIOD_OUT_LOW);
> if (IS_ERR(dc))
> return dev_err_probe(dev, PTR_ERR(dc), "Failed to get GPIO 'dc'\n");
>
>
Reviewed-by: Antonio Borneo <antonio.borneo@xxxxxxxxxxx>
Thanks,
Antonio