From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/bridge: analogix_dp: Apply drm_bridge_connector helper
Date: Sun, 12 Apr 2026 11:37:41 +1000 [thread overview]
Message-ID: <review-patch11-20260409065301.446670-12-damon.ding@rock-chips.com> (raw)
In-Reply-To: <20260409065301.446670-12-damon.ding@rock-chips.com>
Patch Review
This is the core patch of the series. Key changes:
- **Removes the private `dp->connector`** from `analogix_dp_device`.
- **Converts connector funcs to bridge funcs**: `analogix_dp_get_modes()` -> `analogix_dp_bridge_get_modes()`, `analogix_dp_detect()` -> `analogix_dp_bridge_detect()`, `analogix_dp_atomic_check()` -> `analogix_dp_bridge_atomic_check()`.
- **Inverts the `DRM_BRIDGE_ATTACH_NO_CONNECTOR` logic** - now it's mandatory (required), not forbidden.
- **Adds `devm_drm_bridge_add()`** in `analogix_dp_bind()` instead of probe time.
- **Creates bridge_connector** on both Rockchip and Exynos sides.
- **Reworks CRC functions** (`analogix_dp_start_crc`/`analogix_dp_stop_crc`) to get the dp device from the bridge chain rather than container_of on the connector.
The CRC function rework deserves attention:
```c
bridge = drm_bridge_chain_get_first_bridge(connector->encoder);
if (bridge->type != DRM_MODE_CONNECTOR_eDP)
return -EINVAL;
dp = to_dp(bridge);
```
This correctly uses the bridge chain to find the analogix dp device, since the connector is now a bridge_connector and not directly embedded in `analogix_dp_device`. The `bridge->type` check is a reasonable guard.
The `analogix_dp_bridge_detect()` correctly returns `connector_status_connected` for both panel and next_bridge cases.
The bridge ops are set based on whether there's a panel or not:
```c
if (dp->plat_data->panel)
bridge->ops = DRM_BRIDGE_OP_MODES | DRM_BRIDGE_OP_DETECT;
else
bridge->ops = DRM_BRIDGE_OP_EDID | DRM_BRIDGE_OP_DETECT;
```
This is correct: panels provide modes (via `get_modes`), while monitors provide EDID.
On the Exynos side, the error path for `analogix_dp_bind()` failure changes - it now returns immediately rather than falling through to `return ret`. This is a correction since the old code would always call `dp->encoder.funcs->destroy()` and then return `ret`, but if `ret == 0` it would still destroy the encoder. The new code only destroys the encoder on failure and returns immediately on success to proceed with bridge_connector init.
No blocking issues.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-04-12 1:37 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 6:52 [PATCH v13 00/17] Apply drm_bridge_connector and panel_bridge helper for the Analogix DP driver Damon Ding
2026-04-09 6:52 ` [PATCH v13 01/17] drm/bridge: analogix_dp: Add &analogix_dp_plat_data.next_bridge Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 02/17] drm/bridge: Move legacy bridge driver out of imx directory for multi-platform use Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 03/17] drm/exynos: exynos_dp: Remove &exynos_dp_device.ptn_bridge Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 04/17] drm/exynos: exynos_dp: Remove unused &exynos_dp_device.connector Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 05/17] drm/exynos: exynos_dp: Apply of-display-mode-bridge to parse the display-timings node Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 06/17] drm/bridge: analogix_dp: Remove redundant &analogix_dp_plat_data.skip_connector Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 07/17] drm/bridge: analogix_dp: Move the color format check to .atomic_check() for Rockchip platforms Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 08/17] drm/bridge: analogix_dp: Remove unused &analogix_dp_plat_data.get_modes() Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 09/17] drm/bridge: analogix_dp: Remove unused struct drm_connector* for &analogix_dp_plat_data.attach() Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 10/17] drm/bridge: analogix_dp: Pass struct drm_atomic_state* for analogix_dp_bridge_mode_set() Damon Ding
2026-04-09 21:02 ` Dmitry Baryshkov
2026-04-10 7:45 ` Luca Ceresoli
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 6:52 ` [PATCH v13 11/17] drm/bridge: analogix_dp: Apply drm_bridge_connector helper Damon Ding
2026-04-09 21:06 ` Dmitry Baryshkov
2026-04-10 7:41 ` Luca Ceresoli
2026-04-10 8:52 ` Damon Ding
2026-04-12 1:37 ` Claude Code Review Bot [this message]
2026-04-09 6:52 ` [PATCH v13 12/17] drm/bridge: analogix_dp: Add new API analogix_dp_finish_probe() Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 7:19 ` [PATCH v13 13/17] drm/rockchip: analogix_dp: Apply analogix_dp_finish_probe() Damon Ding
2026-04-09 7:19 ` [PATCH v13 14/17] drm/exynos: exynos_dp: " Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 7:19 ` [PATCH v13 15/17] drm/bridge: analogix_dp: Attach the next bridge in analogix_dp_bridge_attach() Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 7:19 ` [PATCH v13 16/17] drm/bridge: analogix_dp: Remove bridge disabing and panel unpreparing in analogix_dp_unbind() Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-09 7:19 ` [PATCH v13 17/17] drm/bridge: analogix_dp: Apply panel_bridge helper Damon Ding
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
2026-04-12 1:37 ` Claude review: drm/rockchip: analogix_dp: Apply analogix_dp_finish_probe() Claude Code Review Bot
2026-04-09 12:25 ` (subset) [PATCH v13 00/17] Apply drm_bridge_connector and panel_bridge helper for the Analogix DP driver Luca Ceresoli
2026-04-12 1:37 ` Claude review: " Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-03-19 7:14 [PATCH v11 00/17] " Damon Ding
2026-03-19 7:14 ` [PATCH v11 11/17] drm/bridge: analogix_dp: Apply drm_bridge_connector helper Damon Ding
2026-03-21 18:35 ` Claude review: " Claude Code Review Bot
2026-03-10 1:24 [PATCH v10 00/18] Apply drm_bridge_connector and panel_bridge helper for the Analogix DP driver Damon Ding
2026-03-10 1:24 ` [PATCH v10 11/18] drm/bridge: analogix_dp: Apply drm_bridge_connector helper Damon Ding
2026-03-10 1:39 ` Claude review: " Claude Code Review Bot
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 09/15] drm/bridge: analogix_dp: Apply drm_bridge_connector helper Damon Ding
2026-02-11 6:37 ` Claude review: " 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-patch11-20260409065301.446670-12-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