From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/msm/dsi: add DSI version >= comparison helper
Date: Sun, 22 Mar 2026 03:12:29 +1000 [thread overview]
Message-ID: <review-patch4-20260321-dsi-rgb101010-support-v4-4-eb28ecebbfe8@pm.me> (raw)
In-Reply-To: <20260321-dsi-rgb101010-support-v4-4-eb28ecebbfe8@pm.me>
Patch Review
```c
static bool msm_dsi_host_version_geq(struct msm_dsi_host *msm_host,
u32 major, u32 minor)
{
return msm_host->cfg_hnd->major > major ||
(msm_host->cfg_hnd->major == major &&
msm_host->cfg_hnd->minor >= minor);
}
```
The logic is correct for a >= comparison across (major, minor) pairs. The existing open-coded check in `msm_dsi_host_is_wide_bus_enabled` is correctly refactored to use it:
```c
return msm_host->dsc &&
msm_dsi_host_version_geq(msm_host, MSM_DSI_VER_MAJOR_6G,
MSM_DSI_6G_VER_MINOR_V2_5_0);
```
Note that the old code had an explicit `major == MSM_DSI_VER_MAJOR_6G` check (i.e., it would **not** match for non-6G majors even if the "minor" was numerically higher). The new helper changes the semantics slightly: if `major > MSM_DSI_VER_MAJOR_6G` (i.e., > 0x03), it would now return true, whereas before it would return false. This is likely fine since there is no major version > 0x03 currently, and the new behavior is arguably more correct for forward-compatibility.
**No issues.**
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-21 17:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 7:52 [PATCH v4 0/5] drm/msm: add RGB101010 pixel format and fix 10-bit DSC timing Alexander Koskovich
2026-03-21 7:52 ` [PATCH v4 1/5] drm/mipi-dsi: add RGB101010 pixel format Alexander Koskovich
2026-03-21 17:12 ` Claude review: " Claude Code Review Bot
2026-03-21 7:52 ` [PATCH v4 2/5] drm/meson: handle RGB101010 in format switches Alexander Koskovich
2026-03-21 9:37 ` Neil Armstrong
2026-03-21 17:12 ` Claude review: " Claude Code Review Bot
2026-03-21 7:52 ` [PATCH v4 3/5] drm/msm/dsi: rename MSM8998 DSI version from V2_2_0 to V2_0_0 Alexander Koskovich
2026-03-21 17:12 ` Claude review: " Claude Code Review Bot
2026-03-21 7:52 ` [PATCH v4 4/5] drm/msm/dsi: add DSI version >= comparison helper Alexander Koskovich
2026-03-21 17:12 ` Claude Code Review Bot [this message]
2026-03-21 7:52 ` [PATCH v4 5/5] drm/msm/dsi: Add support for RGB101010 pixel format Alexander Koskovich
2026-03-21 17:12 ` Claude review: " Claude Code Review Bot
2026-03-21 17:12 ` Claude review: drm/msm: add RGB101010 pixel format and fix 10-bit DSC timing Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-03-19 11:57 [PATCH v3 0/4] " Alexander Koskovich
2026-03-19 11:57 ` [PATCH v3 2/4] drm/msm/dsi: add DSI version >= comparison helper Alexander Koskovich
2026-03-21 18: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-patch4-20260321-dsi-rgb101010-support-v4-4-eb28ecebbfe8@pm.me \
--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