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 783E1606A31A for ; Tue, 1 Dec 2026 10:17:04 +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=CE3A0YFY Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C148D10F73C; Tue, 1 Dec 2026 10:16:58 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id C058410F73C for ; Tue, 1 Dec 2026 10:16:52 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id A7460443D1; Tue, 1 Dec 2026 10:16:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F6F81F000C1; Tue, 1 Dec 2026 10:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796120212; bh=jF7ySQ6+ID+jLGiClKMfwluZwdWTnpJgzwByPu3H73E=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CE3A0YFYGPDTziIBY2lFMdjrglecn/FlK5/eiuGCalnRTYVK7vs62+NnjPXcZVC2s /tEgzfxecgTGibEt/7zih9x1Q8JR+1ZZpywpdo/VILvtDheFKZrSbGGomFu+Tp4R4U 14W9NaxDM2LXWwdn10y5dzhfcdFdfzteX2O7e3jKVptuU+AH6f6tAIAPqBOsGT7ipX hBiyA2P7pfFaqYfo7fT7caaj9HoZ+MM6COEXuOAjg/jG23z0A4NfnB9azd/PfKbFnJ QYajitp1mdvbC+dtEhA80+pDgi4uwI8XuZfkejcmgiyOyAEwOFo3NbB23r9IAStYHm Hf5wLXaYUk5Ew== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 5/9] drm/panel: s6e3ha8: Correct the polarity logic within To: "David Heidelberg" Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201-crosshatch-panel-v5-5-fe5a8c0a7fb2@ixit.cz> References: <20261201-crosshatch-panel-v5-0-fe5a8c0a7fb2@ixit.cz> <20261201-crosshatch-panel-v5-5-fe5a8c0a7fb2@ixit.cz> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 10:16:51 +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=-10.8 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] drm/panel: s6e3ha8: wrong initial reset level in s6e3ha8_probe() -- commit 638501e49b28649968fb13a048f427c682aad406 Author: David Heidelberg drm/panel: s6e3ha8: Correct the polarity logic within This commit inverts the reset GPIO sequence in s6e3ha8_amb577px01_wqhd_reset() and adds gpiod_toggle_active_low() for the deprecated "samsung,s6e3ha8" compatible to preserve compatibility with existing device trees that specify GPIO_ACTIVE_HIGH. > diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c b/drivers/gpu/= drm/panel/panel-samsung-s6e3ha8.c > index f5b3992d948bc..99290913de69a 100644 > --- a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c > +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c [ ... ] > @@ -288,6 +300,9 @@ static int s6e3ha8_probe(struct mipi_dsi_device *dsi) > return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), > "Failed to get reset-gpios\n"); > =20 > + if (priv->desc->broken_reset_polarity) > + gpiod_toggle_active_low(priv->reset_gpio); > + [Severity: Medium] Does calling gpiod_toggle_active_low() after devm_gpiod_get(..., GPIOD_OUT_HIGH) leave priv->reset_gpio at the wrong initial physical level on legacy device trees? devm_gpiod_get() configures the output using the untoggled GPIO_ACTIVE_HIGH polarity from the device tree, driving the physical line high (reset deasserted). gpiod_toggle_active_low() then only flips GPIOD_FLAG_ACTIVE_LOW in desc->flags without updating the hardware output, so reset stays deasserted after probe and through the 120 ms power-on delay in s6e3ha8_amb577px01_wqhd_prepare() until s6e3ha8_amb577px01_wqhd_reset() runs. Driving the GPIO to 1 after gpiod_toggle_active_low() (or passing GPIOD_OUT_LOW to devm_gpiod_get() when broken_reset_polarity is set) would keep the panel in reset initially. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-crosshatch= -panel-v5-0-fe5a8c0a7fb2@ixit.cz?part=3D5