From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: Create drm_output_color_format enum
Date: Fri, 27 Feb 2026 15:17:07 +1000 [thread overview]
Message-ID: <review-overall-20260224-drm-rework-color-formats-v1-0-bebc76604ada@kernel.org> (raw)
In-Reply-To: <20260224-drm-rework-color-formats-v1-0-bebc76604ada@kernel.org>
Overall Series Review
Subject: drm: Create drm_output_color_format enum
Author: Maxime Ripard <mripard@kernel.org>
Patches: 24
Reviewed: 2026-02-27T15:17:07.561361
---
This is a well-structured cleanup series by Maxime Ripard that introduces a proper `enum drm_output_color_format` to replace the ad-hoc `DRM_COLOR_FORMAT_*` bitmask defines, and additionally replaces the (mis)use of `enum hdmi_colorspace` in the DRM HDMI connector state and helpers.
The approach is sound: define an enum for individual format values, use `BIT(enum_value)` for bitmasks, and keep backward-compatible `#define` aliases during the transition (removed in patch 13). The series is logically ordered: introduce the enum, convert all users, remove old defines, then consolidate HDMI helpers.
**Key concern**: The `supported_formats` field documentation in both `drm_connector.h` and `drm_bridge.h` still references `@hdmi_colorspace` after patch 14 and must be updated. Additionally, the 422/444 enum ordering differs between `hdmi_colorspace` (YUV422=1, YUV444=2) and `drm_output_color_format` (YCBCR444=1, YCBCR422=2), which is a silent ABI change in the `supported_formats` bitmask. The conversion appears complete for all in-tree users so this is safe, but it should be explicitly called out.
**Commit message quality**: Patches 2-12 all share an identical boilerplate commit message with three typos ("different" should be "difference", "done is such a way than" should be "done in such a way that", "transitition" should be "transition"). These should be fixed.
Overall: the series looks correct and is a worthwhile cleanup. A few documentation and cosmetic issues should be addressed before merging.
---
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-02-27 5:17 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 10:58 [PATCH 00/14] drm: Create drm_output_color_format enum Maxime Ripard
2026-02-24 10:58 ` [PATCH 01/14] drm/connector: Introduce " Maxime Ripard
2026-02-26 9:12 ` Philipp Zabel
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 02/14] drm/edid: Convert to " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 03/14] drm/display: hdmi: Convert to drm_output_color_format Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 04/14] drm/amdgpu: display: " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 05/14] drm/bridge: adv7511: " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 06/14] drm/bridge: analogix: " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 07/14] drm/bridge: cadence: " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 08/14] drm/bridge: synopsys: dw-dp: " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 09/14] drm/bridge: synopsys: dw-hdmi: " Maxime Ripard
2026-02-26 8:59 ` Philipp Zabel
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 10/14] drm/arm: komeda: " Maxime Ripard
2026-02-25 16:12 ` Liviu Dudau
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 11/14] drm/mediatek: dp: " Maxime Ripard
2026-02-26 8:58 ` Philipp Zabel
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 12/14] drm/rockchip: analogix: " Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 13/14] drm/connector: Remove DRM_COLOR_FORMAT defines Maxime Ripard
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 10:58 ` [PATCH 14/14] drm/display: hdmi: Use drm_output_color_format instead of hdmi_colorspace Maxime Ripard
2026-02-24 12:43 ` Jani Nikula
2026-02-25 17:03 ` Nicolas Frattaroli
2026-02-25 17:21 ` Nicolas Frattaroli
2026-02-26 16:24 ` Nicolas Frattaroli
2026-02-27 5:17 ` Claude review: " Claude Code Review Bot
2026-02-24 12:44 ` [PATCH 00/14] drm: Create drm_output_color_format enum Jani Nikula
2026-02-27 5:17 ` Claude Code Review Bot [this message]
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-overall-20260224-drm-rework-color-formats-v1-0-bebc76604ada@kernel.org \
--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