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=1796405307; b=adBm6QKiEBHiioSOjA6uC/vtIDH0m1mpevXX9E2bbrbN4BzmsbyKt8mIEYr8WaCKOzsh cxvM8u6LG0vKtH4mbCNNmy0ci/b2ut9eha9n1a2SNeCdzvXABxSPQSp9Cwx7cI9Sa2kTK M4GJA+rWa8ngydBqpxk5WlzZW16qYj5W4KkY8I+0uwietAUw7ikFzCM/Yhy1pud3bLEvF YQmPAGZZHclgnNAjok3VGsvp1yh7G8RMFj19KECV3w9bZDJZQ7I65iqghLQGwx8NRT/Jq boaJz9FX2o3VKrBvDeekm0wpnNQPLDJyqLoPtiDpXBoXQXlRFslMmAWsevzmP2kYHCw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796405307; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=M7mF8u/ogPj2FgbiM1/gAnmtY5wUjmWhwHaalSk47Nk=; b=wIuHp93mOJe4e8hXaMJchJofFauN5Yos8CpmeadIt/bWg75peYNH2qdSzZ7DMOoCZ4p4 FTILat8grIm6sGwDQFW31AcnsIhabZKfUmle/y2T0wGE+0QzrbK1wUDE95bnvZhkzLOxx CDT13LpS11BSVetAQnyWJA8+tT0F96+tJCEWD3/clxMTTDdnFfJoZidPOkq6+E1EgmAiM xsSWWe7T7Qn032NTcY2ThqPCbu8ZdfpiRjZGcoeC+s4Vni4BhJjhu9PCJVd6pK8M6i0Hi kkrSf0muWqucCAiCmDzGkUV6+m5/TfgCar13z0PSDjrmp4y4I96VYVG0gdOroIKgkcw== 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=dTGNM0PO; 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 E8955606A322 for ; Fri, 4 Dec 2026 17:28:26 +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=dTGNM0PO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D8791F00936; Fri, 4 Dec 2026 17:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796405306; bh=M7mF8u/ogPj2FgbiM1/gAnmtY5wUjmWhwHaalSk47Nk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=dTGNM0PO5pA0SSM4hZ3ppAmEQ1o0/exQ+j3xNv8zD56crmckbSSUG4n2RWqp2geun 9sYdCYeGz/qTHjPXMW/34u8eJRQpjWKTcDxLel9A5OYpkav17qEhE2UJqhVXYE0S95 x81fS8Y7XE5Ut/jpMe0ZDQ6tiKqOo3drYSfOVwivVuLQFU7jVmXVEGZnMvrjjQ3KLQ HlctDZaaHEd2V0SZoaEPNgWDBvrGBSZsyFgehGDDMErwUjuODaTMgBC7smW3+KeXE4 azsK97LGCVC/nBWBkwHmDcVM1jEXJCrSnDG42RmETL3Ef6jzbE5OZ+wAaYZp3zSEuM ysLa/sT5Th33w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 2/3] drm/panel: ilitek-ili9881c: Add support for two-lane configuration 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-2-2417aeda6126@bootlin.com> References: <20261204-feature_sfto340xc-v3-0-2417aeda6126@bootlin.com> <20261204-feature_sfto340xc-v3-2-2417aeda6126@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 17:28:25 +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: ili9881c_dsi_probe() attaches with 0 lanes - [Low] drm/panel: ilitek-ili9881c: missing newlines in ili9881c_dsi_probe() logs -- commit e899140e568f50f7b97bce08c9f86acfc451c3c2 Author: Kory Maincent drm/panel: ilitek-ili9881c: Add support for two-lane configuration This commit adds support for two-lane configuration in the ILI9881c panel driver and reads the lane count from the remote DSI endpoint when the panel descriptor omits it. > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c b/drivers/gpu/= drm/panel/panel-ilitek-ili9881c.c > index 0854c4cf7ebd7..a858830c9f520 100644 > --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c [ ... ] > @@ -3012,13 +3024,22 @@ static int ili9881c_dsi_probe(struct mipi_dsi_dev= ice *dsi) > if (ret) > return ret; > =20 > - ret =3D devm_drm_panel_add(&dsi->dev, &ctx->panel); > - if (ret) > - return ret; > - > dsi->mode_flags =3D ctx->desc->mode_flags; > dsi->format =3D MIPI_DSI_FMT_RGB888; > 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"); [Severity: Low] Both dev_info() and dev_warn() strings are missing a trailing '\n', unlike the other log messages in this driver. > + else > + dsi->lanes =3D ret; > + } > + > + ret =3D devm_drm_panel_add(&dsi->dev, &ctx->panel); > + if (ret) > + return ret; > =20 > return devm_mipi_dsi_attach(&dsi->dev, dsi); > } [Severity: High] Can this call devm_mipi_dsi_attach() with dsi->lanes set to 0? When ctx->desc->lanes is 0 and the remote endpoint omits data-lanes or specifies an unsupported count such as 3, ili9881c_dsi_probe() logs a message and falls through without setting dsi->lanes or returning an error. DSI host drivers assume device->lanes >=3D 1: vc4_dsi_host_attach() divides by dsi->lanes directly, causing a divide-by-zero oops during attach, and dw_mipi_dsi_get_minimum_lbcc() indexes minimum_lbccs[dsi->lanes - 1], causing an out-of-bounds read. Also, drm_of_get_data_lanes_count_remote() returns -EINVAL for out-of-range counts as well as missing properties, so the ret < 0 branch misreports invalid lane counts as missing. Returning an error on both failure branches, as jadard_dsi_probe() does, avoids attaching with zero lanes. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-feature_sf= to340xc-v3-0-2417aeda6126@bootlin.com?part=3D2