From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E15C328B7B; Thu, 28 May 2026 20:49:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780001386; cv=none; b=N1qgdJWc0IwOEYra0KaJOHPRSNSWH7SkFe6QN9Tv0MIWKpuZytPPXHbfyb84m+MnR9OeCj0FKCrQ9agPC0QIJcsjGHmciw16zLU6c4dDFi0TOTodrzq9R76UPYfm7tX2sZ/PQRHtt38ef9lhZqHUlKNAkkWtMZeb4xvfIdnBpo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780001386; c=relaxed/simple; bh=MO1zmg+pWNwe/QE7/+1BxVxeBlQof0PEXXkmmr/I754=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J63+XWWV0WSAIpKs0nA5q5dUhMVYl6eBI5aH4Dqxrv6LT8XujJkH6RoNRghL9sDfYhU44xuK2zEnooj2YSvnhMmIpLve/BA2l6r/UexZWt0z3DO+2eKUJBK3wAvScywDgu6PlT5VXSy+aZ3+4LnBwUVzvpCnOi41HH/Q87Vsvbs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Cx0g7WXW; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Cx0g7WXW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A80441F000E9; Thu, 28 May 2026 20:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780001384; bh=6Cx+zvP90r3YikC1QVybhsUuCYosB21wpk0AxtZst/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Cx0g7WXW0GZGBhxtf2WWEZtHd2GRerUrwy587U8hKMJ/PQDk8G0tNzGMYxfPAqEJ3 uUpp6ppvHANjZdsNGNoxH/JDnd/nQo7SlpbvsJ/7uPFZwfrZcbnYHHtVRrwNRaWYOV YRJA0XOO45kiI+7nGaWg2Qwf/GkqDYAXY2MILmaQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Julien Chauveau , Javier Martinez Canillas Subject: [PATCH 6.6 071/186] drm/bridge: it66121: acquire reset GPIO in probe Date: Thu, 28 May 2026 21:49:11 +0200 Message-ID: <20260528194930.857175503@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260528194928.941004471@linuxfoundation.org> References: <20260528194928.941004471@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Julien Chauveau commit e02b5262fd288cc235f14e12233ea54e78c04611 upstream. The it66121_ctx structure has a gpio_reset field, and it66121_hw_reset() calls gpiod_set_value() on it. However, the GPIO descriptor is never acquired via devm_gpiod_get(), leaving gpio_reset as NULL throughout the driver lifetime. gpiod_set_value() silently returns when passed a NULL descriptor, so the hardware reset sequence in it66121_hw_reset() is a no-op. This leaves the chip in an undefined state at probe time, which can prevent it from responding on the I2C bus. The DT binding marks reset-gpios as a required property, so all compliant device trees provide this GPIO. Add the missing devm_gpiod_get() call after enabling power supplies and before the hardware reset, so the chip is properly reset with power applied. Fixes: 988156dc2fc9 ("drm: bridge: add it66121 driver") Cc: stable@vger.kernel.org Signed-off-by: Julien Chauveau Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Link: https://patch.msgid.link/20260324193011.16583-1-chauveau.julien@gmail.com Signed-off-by: Javier Martinez Canillas Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/bridge/ite-it66121.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -1566,6 +1566,11 @@ static int it66121_probe(struct i2c_clie return ret; } + ctx->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); + if (IS_ERR(ctx->gpio_reset)) + return dev_err_probe(dev, PTR_ERR(ctx->gpio_reset), + "Failed to get reset GPIO\n"); + it66121_hw_reset(ctx); ctx->regmap = devm_regmap_init_i2c(client, &it66121_regmap_config);