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=1796405154; b=Zd+BH+VCG1GFmv4ZoPYxVShO/0QRpPko6f35mJrh53hyqJmG9Ag+Ek0CXaH7W/bbsxvg MnwjzstgCXQ6xtgqtV/rBkXclFzB6o/km1aMPcfQE0T0OqPa3JKQuvTHRgJahyTR+i9Rl Nm/XkncB87lu34cvhZHYnJ3aRjyx3YbBh/YngZpRSD2pGzGcZVARezKeMUygzwYfvS5J2 ghCx8p/gtCPqIN/VcWslxAPPXfNjO8fN9on4J9+QS82dt1BCsRF9zvpSfw0rBPY+kZdKB bTv0xTPCnBfnapTnPUIWCQogB64icukLb0D1rjQNHmJdrvfwiCruwkXqW5eS2erXn2Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796405154; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=hLbBMCMZcuCgpMT0yZAlNdFPQXTB5x/nBEKaVFIhguA=; b=quoM/ynJhPZ1sueQczpot3bTl1b+2Hojr2uQoPj1ZHjlJemqfXR2VWOZX3H/F7uWF4ws 3KkHecWJ/KiaEZHuRS5s8bOHTqlzI8elgeJ0zRhkihFd5kWvfLowIfo+6CtVQdi7tu7AD Bg15tcypZjD7ZcaJDFOsJRe9/mSonhv3vE6cgNSnti1aQwQIwjbfPEaJcL3b2kcae2EdC QQuxcsZ3WJtWfGAAE7xjpUgtYrMtOo/fOxZoC3GibBL8b6Y+UMsahvXdN/GNujHNthCah i79c2MjE8CmA64OZy4BrKjneaT4yjaIxK7+Fj6M1xwW0IqHZBZXeczj5+MP28N8KyyA== 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=RLs81ZQt; 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 4EABD606A696 for ; Fri, 4 Dec 2026 17:25:54 +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=RLs81ZQt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 024A41F0093B; Fri, 4 Dec 2026 17:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796405154; bh=hLbBMCMZcuCgpMT0yZAlNdFPQXTB5x/nBEKaVFIhguA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=RLs81ZQtjlo373HDQ2iYReRA62Dftl7CErPK365G1EXZsNg2bXeA9DymKNoe2QWHv zRZgYe9RRgczRVObhmQu+yCB+j0XoWqP9uHLxsKRP5Roey0qGD8HHJEexP3sAhWLX2 /A47astl9IjMaikpR7hzPx5+LUcRkOXVi2LfZEuQVC2FA6RjfYiioRT7LQT+Ho+lXx I3FH1uB7IXCVU8uu9S2GzuYrhENHwEYqGFjQ/DA7ku7skoA96URn7BUW/JINRCSwjv 2EEp5XysITYwCk80t6vSIbGTkxDvkxnaTlDAwgnexluQrUA71p61GUk9KkQD+ND47u MMH5rzpkkVJqw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 3/3] drm/panel: ilitek-ili9881c: Add Saef SFTO340XC LCD panel Reply-To: sashiko-reviews@lists.linux.dev To: "Kory Maincent" Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-feature_sfto340xc-v3-3-2417aeda6126@bootlin.com> References: <20261204-feature_sfto340xc-v3-0-2417aeda6126@bootlin.com> <20261204-feature_sfto340xc-v3-3-2417aeda6126@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 17:25:53 +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: - [High] drm/panel: ilitek-ili9881c: sfto340xc_desc allows zero-lane DSI attach - [Low] drm/panel: ilitek-ili9881c: ambiguous msleep_delay name and sparse commit log -- commit 4b933e45a7a7d06f22ea905fd9c78d336f5a6ba9 Author: Kory Maincent drm/panel: ilitek-ili9881c: Add Saef SFTO340XC LCD panel This commit adds support for the Saef Technology Limited SFTO340XC LCD panel to the Ilitek ILI9881C driver, including a new optional post-display-= on delay field in struct ili9881c_desc. > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/= drm/panel/panel-ilitek-ili9881c.c > index a858830c9f520..b090cb2a49725 100644 > --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c > @@ -45,6 +45,7 @@ struct ili9881c_desc { > const unsigned long mode_flags; > u8 default_address_mode; > unsigned int lanes; > + const unsigned int msleep_delay; > }; [Severity: Low] This isn't a bug, but msleep_delay names the helper rather than the transition or unit, while ili9881c_prepare() already has several other delays; something like post_display_on_delay_ms would be clearer. The commit message also omits this new delay field and does not explain why the SFTO340XC panel needs a 100 ms delay after MIPI_DCS_SET_DISPLAY_ON. [ ... ] > @@ -3060,6 +3282,15 @@ static const struct ili9881c_desc k101_im2byl02_de= sc =3D { > .lanes =3D 4, > }; > =20 > +static const struct ili9881c_desc sfto340xc_desc =3D { > + .init =3D sfto340xc_init, > + .init_length =3D ARRAY_SIZE(sfto340xc_init), > + .mode =3D &sfto340xc_default_mode, > + .mode_flags =3D MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | > + MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS, > + .msleep_delay =3D 100, > +}; [Severity: High] Can leaving .lanes unset in sfto340xc_desc cause a zero-lane DSI attach? When a DT node follows the ilitek,ili9881c.yaml binding and omits port or remote data-lanes, drm_of_get_data_lanes_count_remote() returns an error, but ili9881c_dsi_probe() only logs a message and still attaches the device with dsi->lanes =3D=3D 0: drivers/gpu/drm/panel/panel-ilitek-ili9881c.c:ili9881c_dsi_probe() { ... dsi->lanes =3D ctx->desc->lanes; if (!dsi->lanes) { ret =3D drm_of_get_data_lanes_count_remote(dsi->dev.of_node, 0, -1, 2, 4); if (ret < 0) dev_info(&dsi->dev, "No lanes number described"); else if (ret !=3D 2 && ret !=3D 4) dev_warn(&dsi->dev, "Wrong lanes number"); else dsi->lanes =3D ret; } ... return devm_mipi_dsi_attach(&dsi->dev, dsi); } mipi_dsi_attach() does not reject zero lanes, so DSI hosts such as vc4_dsi_host_attach() immediately divide by zero (24 / dsi->lanes) during attach. Should sfto340xc_desc set .lanes explicitly, or should ili9881c_dsi_probe() return an error (or fall back to a valid default) when a 2- or 4-lane count cannot be obtained? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-feature_sf= to340xc-v3-0-2417aeda6126@bootlin.com?part=3D3