public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/exynos: exynos_dp: Apply of-display-mode-bridge to parse the display-timings node
Date: Wed, 11 Feb 2026 16:37:16 +1000	[thread overview]
Message-ID: <review-patch5-20260210071225.2566099-6-damon.ding@rock-chips.com> (raw)
In-Reply-To: <20260210071225.2566099-6-damon.ding@rock-chips.com>

Patch Review

**Summary:** Uses the new generic of-display-mode-bridge instead of custom parsing logic.

**Before:**
```c
-static int exynos_dp_get_modes(struct analogix_dp_plat_data *plat_data,
-			       struct drm_connector *connector)
-{
-	struct exynos_dp_device *dp = to_dp(plat_data);
-	struct drm_display_mode *mode;
-
-	mode = drm_mode_create(connector->dev);
-	if (!mode) {
-		DRM_DEV_ERROR(dp->dev,
-			      "failed to create a new display mode.\n");
-		return 0;
-	}
-
-	drm_display_mode_from_videomode(&dp->vm, mode);
```

**After:**
```c
+	ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, &panel, &bridge);
+	if (ret == -ENODEV) {
+		dp->plat_data.next_bridge = devm_drm_of_display_mode_bridge(dp->dev,
+									dp->dev->of_node,
+									DRM_MODE_CONNECTOR_eDP);
```

**Review:**
- Removes 27 lines of custom code in favor of generic helper
- The `has_of_bridge` flag is temporary (mentioned in commit message) - acceptable for staged refactoring
- Error handling is preserved

**Concern:** The temporary flag creates technical debt, but patch 9 should remove it.

**Verdict:** Good refactoring, verify flag removal in later patches.

---

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-02-11  6:37 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-10  7:12 [PATCH v9 00/15] Apply drm_bridge_connector and panel_bridge helper for the Analogix DP driver Damon Ding
2026-02-10  7:12 ` [PATCH v9 01/15] drm/bridge: analogix_dp: Add &analogix_dp_plat_data.next_bridge Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 02/15] drm/bridge: Move legacy bridge driver out of imx directory for multi-platform use Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 03/15] drm/exynos: exynos_dp: Remove &exynos_dp_device.ptn_bridge Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 04/15] drm/exynos: exynos_dp: Remove unused &exynos_dp_device.connector Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 05/15] drm/exynos: exynos_dp: Apply of-display-mode-bridge to parse the display-timings node Damon Ding
2026-02-11  6:37   ` Claude Code Review Bot [this message]
2026-02-10  7:12 ` [PATCH v9 06/15] drm/bridge: analogix_dp: Remove redundant &analogix_dp_plat_data.skip_connector Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 07/15] drm/bridge: analogix_dp: Move the color format check to .atomic_check() for Rockchip platforms Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 08/15] drm/bridge: analogix_dp: Remove unused &analogix_dp_plat_data.get_modes() Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 09/15] drm/bridge: analogix_dp: Apply drm_bridge_connector helper Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 10/15] drm/bridge: analogix_dp: Add new API analogix_dp_finish_probe() Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 11/15] drm/rockchip: analogix_dp: Apply analogix_dp_finish_probe() Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 12/15] drm/exynos: exynos_dp: " Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  7:12 ` [PATCH v9 13/15] drm/bridge: analogix_dp: Attach the next bridge in analogix_dp_bridge_attach() Damon Ding
2026-02-11  6:37   ` Claude review: " Claude Code Review Bot
2026-02-10  9:10 ` [PATCH v9 14/15] drm/bridge: analogix_dp: Remove bridge disabing and panel unpreparing in analogix_dp_unbind() Damon Ding
2026-02-10  9:10   ` [PATCH v9 15/15] drm/bridge: analogix_dp: Apply panel_bridge helper Damon Ding
2026-02-11  6:37     ` Claude review: " Claude Code Review Bot
2026-02-11  6:37   ` Claude review: drm/bridge: analogix_dp: Remove bridge disabing and panel unpreparing in analogix_dp_unbind() Claude Code Review Bot
2026-02-11  6:37 ` Claude review: Apply drm_bridge_connector and panel_bridge helper for the Analogix DP driver Claude Code Review 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=review-patch5-20260210071225.2566099-6-damon.ding@rock-chips.com \
    --to=claude-review@example.com \
    --cc=dri-devel-reviews@example.com \
    /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