From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796441583; b=5cCpBiKZevkeigc6Ry0GFVzs5gpKtaGv7S1SwgHHwvwK8tFcpV6+txeuMt2TLXM56FIp ZrilKKXIY3o1EUUNcGMtzqghkb3bbn6m4PdoXbAKRk7VMS3uiC+Kk8XytnnNz+k9KinwK ESAZ3+09Fvrjx+LV3dytfq/zSXDwPxyhdKypvFqNOON1gsGef0YuVmVnw6Io70pISGEYn YqfbsmgYzZ6Rx2/9percmfJ9enTSnguYD5HdJa/+aHOQPV/j22aYdKqDwWg3mGuzA+OSo uNlrrdLT/d+pbg0vBxCKpYHzs70WSoQNPZ6W3G3rp2ju/2k/R9w2qHMmPLvHsvE41aA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796441583; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=LFe+LtNv9nNHWci9NB0vD6auDA6D/teAk/k3tK6dXDI=; b=pwhu0tF4bJ/L2AeLmsTSRWRBnsc4nEL2Ods86cwVcPwKiQ926FMXraBTZJF3bjKasaJa we9UMZ4tBrWxT88hfbLCDjc2s61pBJ+N8u3DvUFaawg0JnsiTegb7kYaNY8qDCeiBWVb+ nOeXBV/VwTdnZ0jng93LCxb4/PIStMphIy8E2m6uX2Uj1aOlsnbOD/puPFC65et6NAMt4 SKDn7aCWCfXAekRwTcPg8zO3zjpAjGvrEbjlUNeuPp8Xh51NFJAHGRUIzAymMjeQ/Bx2p TFJ4Xl52R1CozQzwm7iwvbFuHRR6vYe/u8GaJY1FhQGru1fzswBcGYTSOKCMerAf6bw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UA7mhb1f; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DC0A606A322 for ; Sat, 5 Dec 2026 03:33:03 +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=UA7mhb1f Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F1851F00936; Sat, 5 Dec 2026 03:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796441583; bh=LFe+LtNv9nNHWci9NB0vD6auDA6D/teAk/k3tK6dXDI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=UA7mhb1fRw4E05QuRCWAT7U1uzRCdAAe68KarB2V8GnEjVX/qC3UN1n96ZzSUqrQg UzBlFFfO5EwspEe312acEI88/XJgCrzXZcKy4lyAL8cOP76lrki+ttR23Kq0LvE2N7 clPPHZiCZHdW+4DBEcXrn7Ki+WaAsTpuE/8YofnjQcNaCn61CaZTaosuAEVCe/C6oL XsWyj6N+NtB+bh+1JCCerD1odhJxJExaE6fWkfjfl46Yx0hjO/HCplpjNmD2Z48jjD wA0c70ymrbFFyBpP1Z+fJK5PXDprPSyvZtTkPhqhJ0rWPMuRlR1VIDDwsZ/lsyVcDg meeJG9QHzwQmw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 2/2] drm/panel: Add Novatek NT36525 panel driver Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?QWRpbCBIw7xzcmV2IFRlcGU=?= Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205-nt36525-v5-2-8c3f07ee3311@gmail.com> References: <20261205-nt36525-v5-0-8c3f07ee3311@gmail.com> <20261205-nt36525-v5-2-8c3f07ee3311@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 03:33:02 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] drm/panel: nt36525_unprepare() disables vddio before asserting reset_gpio - [Low] drm/panel: nt36525 uses mipi_dsi_msleep(1) instead of mipi_dsi_usleep_range() -- commit d1ea9a8be5efeab14d7d9759b6739e475ac7c1ef Author: Adil H=C3=BCsrev Tepe drm/panel: Add Novatek NT36525 panel driver This commit adds a MIPI-DSI panel driver for Novatek NT36525-based panels, initially supporting the 720x1480 CSOT panel used in the Samsung Galaxy XCover5 (SM-G525F). > diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36525.c b/drivers/gpu/= drm/panel/panel-novatek-nt36525.c > new file mode 100644 > index 0000000000000..91ce09cf91dfe > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-novatek-nt36525.c > @@ -0,0 +1,513 @@ [ ... ] > +static int samsung_xcover5_csot_init_seq(struct mipi_dsi_multi_context *= dsi_ctx) > +{ > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xff, 0x20); > + mipi_dsi_msleep(dsi_ctx, 1); > + mipi_dsi_dcs_write_seq_multi(dsi_ctx, 0xfb, 0x01); [Severity: Low] Should the ten 1 ms delays after 0xff page switches in samsung_xcover5_csot_init_seq() use mipi_dsi_usleep_range() instead of mipi_dsi_msleep()? mipi_dsi_msleep() wraps jiffy-based msleep(), sleeping 1-2 jiffies per call (4-8 ms at HZ=3D250) and turning 10 ms of delays into 40-80 ms on every panel power-on and resume. mipi_dsi_usleep_range(dsi_ctx, 1000, 1500) would avoid the overshoot. [ ... ] > +assert_reset: > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > + regulator_disable(ctx->vddneg); > + usleep_range(1000, 1500); > +disable_vddpos: > + regulator_disable(ctx->vddpos); > + usleep_range(5000, 5500); > +disable_vddio: > + regulator_disable(ctx->vddio); > + return ret; > +} > + > +static int nt36525_unprepare(struct drm_panel *panel) > +{ > + struct nt36525 *ctx =3D to_nt36525(panel); > + struct mipi_dsi_multi_context dsi_ctx =3D { .dsi =3D ctx->dsi }; > + > + mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); > + mipi_dsi_msleep(&dsi_ctx, 20); > + mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx); > + mipi_dsi_msleep(&dsi_ctx, 60); > + > + usleep_range(3000, 3500); > + regulator_disable(ctx->vddneg); > + usleep_range(1000, 1500); > + regulator_disable(ctx->vddpos); > + usleep_range(5000, 5500); > + regulator_disable(ctx->vddio); > + msleep(30); > + gpiod_set_value_cansleep(ctx->reset_gpio, 1); > + > + return 0; > +} [Severity: Medium] Does nt36525_unprepare() disable vddio while reset_gpio is still deasserted? Because reset_gpio is active low, logical 0 drives the physical reset pin high. Disabling vddio 30 ms before asserting reset_gpio leaves the pin driven high into an unpowered I/O rail, which can back-power vddio through the ESD clamp and contradicts assert_reset in nt36525_prepare(). Similarly, because nt36525_probe() requests reset_gpio with GPIOD_OUT_LOW, failing regulator_enable() for vddpos or vddneg jumps to disable_vddio or disable_vddpos and turns off vddio without asserting reset_gpio. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-nt36525-v5= -0-8c3f07ee3311@gmail.com?part=3D2