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 0531433F5B4; Thu, 28 May 2026 19:58:53 +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=1779998334; cv=none; b=d9Zzrg07vSGkC6gOnN/3gN1llOfXJTiBLO+juPVUH7PHHCnO1UfWsYSma3/7PUSVeywK2D/a9j1KfoNDAfSf2tr1/xc8+MsmCmbj57e0bmOpFJM1+mHB1mxmn8fzaaKXmwBZtCuv1NmqN5KtsZ1yxb6gaYQlB0huRj4rAXXzlBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779998334; c=relaxed/simple; bh=xxpAi2I56DclFYm7NOweC9ZYfgcSMUpgyyw4O/YUH8s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=clwxsa3oY8ehz3bBxMIOy8pPBlC3ZmCDjE2g5ISzj3dojugr5xDBIgNSnJ9/W0nJist8iRZ8NVNITHp+kxWDMRJxA/afzPs2Hsz9pstMON8qo81uHxATeFR00EARIXEyAiwzn+OEBuUenEweor1DkfTi6H7ybHqFIZ/zvyXrmZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kHC4oBgc; 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="kHC4oBgc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC161F000E9; Thu, 28 May 2026 19:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779998332; bh=bV9SIl8yKYtw+T6gMFwAahmv7EVdqsx6CZzMVmq3+fw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kHC4oBgcf47ss4PwIJb4EblPwxB20Br9jkbj/K7EE/8/rdB88q9JKcbZVQ4IkrTPi YUV6QSuZGgyHtYaLs99DqWz7jqEUCgS93569KrvhilkGOBoci5b1wDc40XGmTF17jS tUFy2F8PIr8IyysNOOOKtaDjmK65PAp+14QkLHAA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Julien Chauveau , Javier Martinez Canillas Subject: [PATCH 7.0 136/461] drm/bridge: it66121: acquire reset GPIO in probe Date: Thu, 28 May 2026 21:44:25 +0200 Message-ID: <20260528194650.928020280@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260528194646.819809818@linuxfoundation.org> References: <20260528194646.819809818@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-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 @@ -1559,6 +1559,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);