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/msm/dp: add missing drm_edid_connector_update() before add_modes on cached EDID
Date: Thu, 04 Jun 2026 12:21:12 +1000	[thread overview]
Message-ID: <review-patch1-20260602-drm_plug_flaky_edid-v2-1-1269fb942299@oldschoolsolutions.biz> (raw)
In-Reply-To: <20260602-drm_plug_flaky_edid-v2-1-1269fb942299@oldschoolsolutions.biz>

Patch Review

**Correctness: Good.**

The change adds the required `drm_edid_connector_update()` call in the cached-EDID fast path of `msm_dp_panel_get_modes()`:

```c
if (msm_dp_panel->drm_edid) {
    drm_edid_connector_update(connector, msm_dp_panel->drm_edid);
    return drm_edid_connector_add_modes(connector);
}
```

This mirrors the pattern already used in `msm_dp_panel_read_sink_caps()` (line 281) where `drm_edid_connector_update()` is called right after `drm_edid_read_ddc()`. The documentation in `drm_edid.c` is explicit that `drm_edid_connector_update()` "must be called before calling `drm_edid_connector_add_modes()`", so this is the correct fix.

**Calling `drm_edid_connector_update()` redundantly is safe.** It calls `update_display_info()`, `_drm_update_tile_info()`, and `_drm_edid_connector_property_update()` — all of which are idempotent for the same EDID data. If `get_modes` is called more than once during a single connection lifecycle, the second call to `drm_edid_connector_update()` simply re-sets the same values. No concern here.

**Return value of `drm_edid_connector_update()` is intentionally ignored.** The function returns an error code from property updates, but the caller is `.get_modes` which returns mode count. Other drivers (e.g., `drm_bridge_connector.c`) also ignore this return value in the `get_modes` path, so this is consistent with existing patterns.

**Fixes tag is correct.** Commit 5bea90ad9743 is the refactor that introduced the `struct drm_edid` API usage and dropped the previously-implicit association.

**Scope is appropriate.** V1 had retry/re-read logic; v2 correctly identified the root cause and dropped the workaround. The fix is minimal — one added line plus the braces to wrap the block.

**No issues found.**

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-06-04  2:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 18:18 [PATCH v2] drm/msm/dp: add missing drm_edid_connector_update() before add_modes on cached EDID Jens Glathe via B4 Relay
2026-06-04  2:21 ` Claude Code Review Bot [this message]
2026-06-04  2:21 ` 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-patch1-20260602-drm_plug_flaky_edid-v2-1-1269fb942299@oldschoolsolutions.biz \
    --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