From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/rcar-du: dsi: Support DSC in the pipeline
Date: Sat, 16 May 2026 09:29:58 +1000 [thread overview]
Message-ID: <review-patch4-20260515-rcar-du-dsc-v3-4-164157820498@ideasonboard.com> (raw)
In-Reply-To: <20260515-rcar-du-dsc-v3-4-164157820498@ideasonboard.com>
Patch Review
This patch handles the pipeline topology change where the CRTC code calls `rcar_mipi_dsi_pclk_enable()` on whatever bridge is first in the chain — which is now the DSC bridge rather than the DSI bridge.
The `rcar_mipi_dsi_resolve_bridge()` approach of comparing `bridge->funcs` pointers is pragmatic. The forward declaration of `rcar_mipi_dsi_bridge_ops` is necessary and correctly placed.
```c
+static struct drm_bridge *
+rcar_mipi_dsi_resolve_bridge(struct drm_bridge *bridge)
+{
+ if (bridge->funcs != &rcar_mipi_dsi_bridge_ops)
+ bridge = bridge->next_bridge;
+
+ if (!bridge || bridge->funcs != &rcar_mipi_dsi_bridge_ops)
+ return NULL;
+
+ return bridge;
+}
```
One consideration: this function is in `rcar_mipi_dsi.c` but it needs to understand the DSC bridge's topology (specifically, that DSC's `next_bridge` points to the DSI). This works because `next_bridge` is a standard drm_bridge field, so no DSC-specific knowledge is actually needed beyond "skip one bridge if it's not ours." The comment explaining the logic is appropriate and helpful.
The `WARN_ON(!bridge)` in both callers is a reasonable choice — this situation indicates broken DT data, which shouldn't occur in a correctly configured system.
No issues.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-15 23:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 9:09 [PATCH v3 0/7] drm/rcar-du: Add support for DSI pipelines with DSC Tomi Valkeinen
2026-05-15 9:09 ` [PATCH v3 1/7] clk: renesas: r8a779g0: Add DSC clock Tomi Valkeinen
2026-05-15 23:29 ` Claude review: " Claude Code Review Bot
2026-05-15 9:09 ` [PATCH v3 2/7] dt-bindings: display: bridge: Document Renesas R-Car V4H DSC bindings Tomi Valkeinen
2026-05-15 23:29 ` Claude review: " Claude Code Review Bot
2026-05-15 9:09 ` [PATCH v3 3/7] drm/rcar-du: dsc: Add rudimentary Renesas R-Car V4H DSC driver Tomi Valkeinen
2026-05-15 23:29 ` Claude review: " Claude Code Review Bot
2026-05-15 9:09 ` [PATCH v3 4/7] drm/rcar-du: dsi: Support DSC in the pipeline Tomi Valkeinen
2026-05-15 23:29 ` Claude Code Review Bot [this message]
2026-05-15 9:09 ` [PATCH v3 5/7] arm64: dts: renesas: r8a779g0: Add DSC Tomi Valkeinen
2026-05-15 23:29 ` Claude review: " Claude Code Review Bot
2026-05-15 9:09 ` [PATCH v3 6/7] arm64: dts: renesas: sparrow-hawk: Enable DisplayPort by adding DSC Tomi Valkeinen
2026-05-15 23:29 ` Claude review: " Claude Code Review Bot
2026-05-15 9:09 ` [PATCH v3 7/7] arm64: dts: renesas: white-hawk: Add second mini-DP output support Tomi Valkeinen
2026-05-15 23:29 ` Claude review: " Claude Code Review Bot
2026-05-15 23:29 ` Claude review: drm/rcar-du: Add support for DSI pipelines with DSC Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-05-15 7:56 [PATCH v2 0/5] " Tomi Valkeinen
2026-05-15 7:56 ` [PATCH v2 4/5] drm/rcar-du: dsi: Support DSC in the pipeline Tomi Valkeinen
2026-05-15 23:46 ` Claude review: " Claude Code Review Bot
2026-05-14 12:24 [PATCH 0/5] drm/rcar-du: Add support for DSI pipelines with DSC Tomi Valkeinen
2026-05-14 12:24 ` [PATCH 4/5] drm/rcar-du: dsi: Support DSC in the pipeline Tomi Valkeinen
2026-05-16 0:53 ` 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-patch4-20260515-rcar-du-dsc-v3-4-164157820498@ideasonboard.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