From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7ED0C606A322 for ; Sat, 5 Dec 2026 01:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QvkDrkGC Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5D7A10E8C4; Sat, 5 Dec 2026 01:05:54 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA39A10E8C4 for ; Sat, 5 Dec 2026 01:05:48 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 8F7214449D; Sat, 5 Dec 2026 01:05:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02DB71F00A06; Sat, 5 Dec 2026 01:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796432748; bh=jYaW03xLpo3f14pvXhnkJ/zUJvmABjj5YtmnT0oYZb8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=QvkDrkGCOUSSn+5Fg3v4EC3P6/dTT/hEDfT+Nfh5FNdkEFJoIxUL0xKG274rTMniY upRwQHH3CKFfA9Dq5L5W1/ALfdLslp9uk4xL9x5Wa3fNLAbdHWdLilLyX9fD61F/YB rUt0ZmMisfuo1r783v512QhEwZxsuzFQ8HzBqToQgPlein8Dkt4QD7/WCb4p/sOypM geP1b/wqe+FW2a8t0cvUCFcybepZtin1qtKHOZ/UEF7URKWpz6qAOmz3dTUC4Ahiuz JUbu7L7pGYhlp/7PiM3Oi+BVjZgLfe41DeCtri6UhRHGXEy6A3kaNWxEkZWFvpyEYN WS+9wexZU9nTw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 3/6] backlight: aw99706: Enable the chip before reading its ID To: "Luka Panio" Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org In-Reply-To: <20261205005118.884885-4-lukapanio@gmail.com> References: <20261205005118.884885-1-lukapanio@gmail.com> <20261205005118.884885-4-lukapanio@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 01:05:46 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] backlight: aw99706: GPIOD_OUT_LOW causes HWEN low glitch in aw99706_probe() -- commit 075b8a34b2576dc02fa570093a2f3e92820bbe54 Author: Luka Panio backlight: aw99706: Enable the chip before reading its ID This commit moves the chip ID read in aw99706_probe() after requesting and asserting the enable GPIO, and de-asserts the GPIO if subsequent probe steps fail. > diff --git a/drivers/video/backlight/aw99706.c b/drivers/video/backlight/= aw99706.c > index 43f82c83f91a3..c6b0d0122ad69 100644 > --- a/drivers/video/backlight/aw99706.c > +++ b/drivers/video/backlight/aw99706.c > @@ -389,11 +389,6 @@ static int aw99706_probe(struct i2c_client *client) [ ... ] > aw->hwen_gpio =3D devm_gpiod_get(aw->dev, "enable", GPIOD_OUT_LOW); > @@ -401,23 +396,39 @@ static int aw99706_probe(struct i2c_client *client) > return dev_err_probe(dev, PTR_ERR(aw->hwen_gpio), > "Failed to get enable gpio\n"); > =20 > + gpiod_set_value_cansleep(aw->hwen_gpio, 1); > + > + ret =3D aw99706_chip_id_read(aw); [Severity: Medium] Does requesting aw->hwen_gpio with GPIOD_OUT_LOW and immediately asserting it high glitch the enable line low before aw99706_chip_id_read()? On boards where the bootloader already enabled the backlight, this low pulse can reset the chip, causing display flicker or making aw99706_chip_id_read() fail while the chip is resetting. Requesting the GPIO with GPIOD_OUT_HIGH instead would avoid the low pulse and remove the redundant gpiod_set_value_cansleep() call. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205005118.8848= 85-1-lukapanio@gmail.com?part=3D3