From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/bridge: ite-it66121: Select HDMI or DVI mode based on sink type
Date: Mon, 25 May 2026 17:50:14 +1000 [thread overview]
Message-ID: <review-patch3-20260523-it66121-fix-dvi-mode-v5-v5-3-33b4468162f9@redhat.com> (raw)
In-Reply-To: <20260523-it66121-fix-dvi-mode-v5-v5-3-33b4468162f9@redhat.com>
Patch Review
**This is the actual bug fix and it's correct.**
```c
if (regmap_write(ctx->regmap, IT66121_HDMI_MODE_REG,
connector->display_info.is_hdmi ?
IT66121_HDMI_MODE_HDMI : IT66121_HDMI_MODE_DVI))
```
Using `connector->display_info.is_hdmi` to select between HDMI mode (BIT(0) = 1) and DVI mode (0) is the standard kernel pattern. The `IT66121_HDMI_MODE_DVI` define as `0` is slightly unconventional (defining a zero constant) but makes the intent clear and is fine.
**The connector is available at this point** because `it66121_set_mode()` (introduced in patch 2) receives it as a parameter from `atomic_enable`, where it's obtained from `drm_atomic_get_new_connector_for_encoder()`. The `display_info.is_hdmi` field is populated during EDID parsing and is reliable at enable time.
**No other mode-dependent logic needs updating.** The HDMI helpers handle infoframe suppression for DVI sinks internally, so no additional changes are needed in the infoframe callbacks.
---
**Summary:** Fix the `HDMI_TMDS_CHAR_RATE_MIN_HZ` build error in patch 1 (define it locally as `25000000ULL` or use the literal). Everything else looks good — the HDMI helper conversion is thorough and correct, and the DVI fix is clean and minimal.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-25 7:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-23 10:40 [PATCH v5 0/3] drm/bridge: ite-it66121: Switch to HDMI helpers and fix DVI output Javier Martinez Canillas
2026-05-23 10:40 ` [PATCH v5 1/3] drm/bridge: ite-it66121: Switch to the HDMI connector helpers Javier Martinez Canillas
2026-05-25 7:50 ` Claude review: " Claude Code Review Bot
2026-05-23 10:40 ` [PATCH v5 2/3] drm/bridge: ite-it66121: Move .mode_set logic to .atomic_enable Javier Martinez Canillas
2026-05-25 7:50 ` Claude review: " Claude Code Review Bot
2026-05-23 10:41 ` [PATCH v5 3/3] drm/bridge: ite-it66121: Select HDMI or DVI mode based on sink type Javier Martinez Canillas
2026-05-25 7:50 ` Claude Code Review Bot [this message]
2026-05-25 7:50 ` Claude review: drm/bridge: ite-it66121: Switch to HDMI helpers and fix DVI output Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-05-15 9:02 [PATCH v4 0/3] drm/bridge: ite-it66121: Fix display output for DVI monitors Javier Martinez Canillas
2026-05-15 9:02 ` [PATCH v4 3/3] drm/bridge: ite-it66121: Select HDMI or DVI mode based on sink type Javier Martinez Canillas
2026-05-15 23:32 ` Claude review: " Claude Code Review Bot
2026-05-12 13:22 [PATCH v3 0/2] drm/bridge: it66121: Fix display output on DVI monitors Javier Martinez Canillas
2026-05-12 13:22 ` [PATCH v3 2/2] drm/bridge: ite-it66121: Select HDMI or DVI mode based on sink type Javier Martinez Canillas
2026-05-16 3:19 ` 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-patch3-20260523-it66121-fix-dvi-mode-v5-v5-3-33b4468162f9@redhat.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