From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/mipi-dsi: add RGB101010 pixel format
Date: Sun, 22 Mar 2026 03:12:28 +1000 [thread overview]
Message-ID: <review-patch1-20260321-dsi-rgb101010-support-v4-1-eb28ecebbfe8@pm.me> (raw)
In-Reply-To: <20260321-dsi-rgb101010-support-v4-1-eb28ecebbfe8@pm.me>
Patch Review
The new enum member is added before `MIPI_DSI_FMT_RGB888`:
```c
enum mipi_dsi_pixel_format {
MIPI_DSI_FMT_RGB101010,
MIPI_DSI_FMT_RGB888,
```
This shifts the numeric values of all existing members (RGB888 goes from 0 to 1, etc.). While all in-tree usage is by symbolic name, **adding new enum values at the end is conventional practice** in the kernel to minimize risk from out-of-tree consumers or any code that might serialize/deserialize these values. Consider placing it after `MIPI_DSI_FMT_RGB565` instead.
The `mipi_dsi_pixel_format_to_bpp` addition returning 30 is correct per MIPI DSI v1.3 Section 8.8.17.
Note: `drm_mipi_dsi_get_input_bus_fmt()` in `drm_mipi_dsi.c` has a `default` case returning 0 for the new format — this means any bridge driver calling that function for RGB101010 will silently get a 0 bus format. That's acceptable for now since no bridge currently supports RGB101010 on the input side, but a `MEDIA_BUS_FMT_RGB101010_1X30` mapping may eventually be needed.
Also: several drivers do `mipi_dsi_pixel_format_to_bpp(...) / 8` to get bytes-per-pixel (e.g., `sun6i_mipi_dsi.c`, `mcde_dsi.c`). For 30bpp, `30 / 8 = 3` (integer truncation), which is wrong — but those drivers don't support RGB101010, so this is fine in practice.
**Looks good** with the minor suggestion about enum ordering.
---
---
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 Code Review Bot [this message]
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 review: " Claude Code Review Bot
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 3:59 [PATCH v2 0/3] " Alexander Koskovich
2026-03-19 4:00 ` [PATCH v2 1/3] drm/mipi-dsi: add RGB101010 pixel format Alexander Koskovich
2026-03-21 18:52 ` 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-20260321-dsi-rgb101010-support-v4-1-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