From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/tegra: dsi: add support for Tegra20/Tegra30
Date: Tue, 10 Mar 2026 12:38:58 +1000 [thread overview]
Message-ID: <review-patch1-20260309075248.47730-2-clamor95@gmail.com> (raw)
In-Reply-To: <20260309075248.47730-2-clamor95@gmail.com>
Patch Review
**Generally well done.** The `tegra_dsi_config` approach with boolean flags is appropriate and keeps the code readable.
**Minor issues:**
1. **Comment style (kernel convention violation):** The multi-line comment block for `tegra124_dsi_config` uses `/* TODO:` on a single line. This is fine, but worth noting the convention. More importantly, the `XXX` comment that was moved into the `has_multiple_pad_controls` branch at `dsi.c:676-678` — while this is just code motion and preserves the existing comment, it might be worth updating or removing it since this is a good opportunity.
2. **`devm_clk_get_optional` change for `clk_lp`:** The change from `devm_clk_get()` to `devm_clk_get_optional()` at line 1635 is correct for Tegra20/30 which lack this clock, but the subsequent error check:
```c
dsi->clk_lp = devm_clk_get_optional(&pdev->dev, "lp");
if (IS_ERR(dsi->clk_lp)) {
```
This is still correct — `devm_clk_get_optional` returns NULL if the clock doesn't exist, and returns an error pointer only for real errors, so the `IS_ERR` check is valid.
3. **`tegra_dsi_setup_clocks` comment:** The added comment at `dsi.c:1191-1195`:
```c
/*
* Tegra124+ uses a clock gate, not a mux, so this step
* should be redundant for configuration; yet, DSI refuses
* to work without it.
*/
```
This is informative but the comment is placed *before* the `if (dsi->config->has_mux_parent_clk)` guard, so on Tegra124+ this function *is* still called (since `has_mux_parent_clk = true`). The comment seems to be explaining why `has_mux_parent_clk` is set to `true` on Tegra124+, but its placement inside `tegra_dsi_setup_clocks()` rather than next to the config definition is slightly confusing. The `TODO` comment on `tegra124_dsi_config` at line 1741 is clearer.
4. **Tegra30 config identical to Tegra20:** Both `tegra20_dsi_config` and `tegra30_dsi_config` have the same values. The explanatory comment about Tegra30 PLL_D/PLL_D2 muxing justifies having a separate struct for future use, so this is acceptable.
5. **No functional concern with `device_get_match_data`:** The NULL check after `device_get_match_data()` returning `-ENODEV` is the right pattern for a required match data.
**No blocking issues.** Already has Reviewed-by from Mikko Perttunen.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-10 2:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 7:52 [PATCH v4 0/2] gpu/drm: tegra: add DSI support for Tegra20/Tegra30 Svyatoslav Ryhel
2026-03-09 7:52 ` [PATCH v4 1/2] drm/tegra: dsi: add " Svyatoslav Ryhel
2026-03-10 2:38 ` Claude Code Review Bot [this message]
2026-03-09 7:52 ` [PATCH v4 2/2] drm/tegra: dsi: re-add clear enable register if DSI was powered by bootloader Svyatoslav Ryhel
2026-03-10 2:38 ` Claude review: " Claude Code Review Bot
2026-03-10 2:38 ` Claude review: gpu/drm: tegra: add DSI support for Tegra20/Tegra30 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-patch1-20260309075248.47730-2-clamor95@gmail.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