Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Damon Ding" <damon.ding@rock-chips.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org,
	dri-devel@lists.freedesktop.org, robh@kernel.org
Subject: Re: [PATCH v6 3/5] drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties
Date: Tue, 07 Jul 2026 04:17:10 +0000	[thread overview]
Message-ID: <20260707041711.4F7351F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260707040613.1992841-4-damon.ding@rock-chips.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Critical] Failing probe when deprecated DT properties are missing breaks DT ABI and prevents their deprecation.
--

--- Patch [3]: [PATCH v6 3/5] drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties ---
commit b573dba50acc6087122ffa4a65680322f4d004f8
Author: Damon Ding <damon.ding@rock-chips.com>

drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties

This commit reverts a change that made the samsung,link-rate and
samsung,lane-count properties optional for Exynos DP. It adds error checking
to fail the probe early if these properties are missing, aiming to prevent
link training failures caused by zero values.

> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> index 8cf6b73bceac0..293d8adfe9856 100644
> --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
> +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
[ ... ]
> @@ -1258,10 +1259,14 @@ static int analogix_dp_dt_parse_pdata(struct analogix_dp_device *dp)
>  		 * NOTE: those property parseing code is used for
>  		 * providing backward compatibility for samsung platform.
>  		 */
> -		of_property_read_u32(dp_node, "samsung,link-rate",
> -				     &video_info->max_link_rate);
> -		of_property_read_u32(dp_node, "samsung,lane-count",
> -				     &video_info->max_lane_count);
> +		if (of_property_read_u32(dp_node, "samsung,link-rate", &val))
> +			return dev_err_probe(dp->dev, -EINVAL,
> +					     "Failed to get samsung,link-rate\n");

[Severity: Critical]
Does failing the probe when this property is missing break the DT ABI?

Since samsung,link-rate is a deprecated property, a modern schema-compliant
Device Tree might intentionally omit it. If a system boots with such a DT,
this check will fail the probe with -EINVAL and disable the display.

Could the driver instead fall back to hardware maximums or sensible defaults
when the deprecated property is absent, rather than returning an error?

> +		video_info->max_link_rate = val;
> +		if (of_property_read_u32(dp_node, "samsung,lane-count", &val))
> +			return dev_err_probe(dp->dev, -EINVAL,
> +					     "Failed to get samsung,lane-count\n");

[Severity: Critical]
Does making samsung,lane-count mandatory similarly break backward compatibility
for valid Device Trees that have intentionally omitted this deprecated property?

> +		video_info->max_lane_count = val;
>  		break;
>  	}
>

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260707040613.1992841-1-damon.ding@rock-chips.com?part=3

  reply	other threads:[~2026-07-07  4:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07  4:06 [PATCH v6 0/5] Add eDP lane mapping support Damon Ding
2026-07-07  4:06 ` [PATCH v6 1/5] dt-bindings: display: bridge: analogix-dp: Add data-lanes support for endpoint Damon Ding
2026-07-07  4:06 ` [PATCH v6 2/5] drm/dp: Add helper to validate DP lane counts Damon Ding
2026-07-07  4:06 ` [PATCH v6 3/5] drm/bridge: analogix_dp: Restore mandatory samsung DP DT properties Damon Ding
2026-07-07  4:17   ` sashiko-bot [this message]
2026-07-07  4:06 ` [PATCH v6 4/5] drm/bridge: analogix_dp: Add validation for samsung,lane-count property Damon Ding
2026-07-07  4:06 ` [PATCH v6 5/5] drm/bridge: analogix_dp: Add support for optional data-lanes mapping Damon Ding
2026-07-07  4:20   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260707041711.4F7351F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=damon.ding@rock-chips.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox