From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/mipi-dbi: Provide callbacks for atomic interfaces
Date: Sun, 22 Mar 2026 04:15:33 +1000 [thread overview]
Message-ID: <review-patch3-20260319160110.109610-4-tzimmermann@suse.de> (raw)
In-Reply-To: <20260319160110.109610-4-tzimmermann@suse.de>
Patch Review
This is the core infrastructure patch. The new helper functions and macros are well-designed.
Minor issues:
1. **Documentation typos** in `drm_mipi_dbi_connector_helper_get_modes()`:
- `"Sets the connecto rmodes"` → should be `"Sets the connector modes"`
- `"get_mods callback"` → should be `"get_modes callback"`
- The cross-reference to `drm_gem_destroy_shadow_plane_state()` seems irrelevant to a connector get_modes function — this looks like a copy-paste error.
2. **Redundant return path** in `drm_mipi_dbi_plane_helper_atomic_check()`:
```c
if (ret)
return ret;
else if (!new_plane_state->visible)
return 0;
return 0;
```
The `else if` branch and the final `return 0` are equivalent. This could simply be `return ret;` after the check call, but it's harmless and may be intentional to leave a hook point for future additions.
3. **Documentation typo** in `drm_mipi_dbi_crtc_helper_atomic_check()`:
`"ensures that the primary plane as been set up"` → should be `"has been set up"`.
4. The `drm_mipi_dbi_plane_helper_atomic_update()` function drops the `WARN_ON(!fb)` that existed in the original `mipi_dbi_pipe_update()`. The new code silently returns on `!fb`, which is fine since the atomic framework guarantees `fb` is set when the plane is visible, but worth noting.
5. The `mipi_dbi_pipe_disable()` wrapper now calls `drm_mipi_dbi_crtc_helper_atomic_disable(&pipe->crtc, pipe->crtc.state->state)` — passing `pipe->crtc.state->state` is correct here since the simple-pipe disable callback is called from within the atomic commit, so state is valid. However, the new `drm_mipi_dbi_crtc_helper_atomic_disable()` doesn't actually use the `state` parameter, so this is fine regardless.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-21 18:15 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 15:59 [PATCH v3 00/16] drm/mipi-dbi: Replace simple-display helpers with regular atomic helpers Thomas Zimmermann
2026-03-19 15:59 ` [PATCH v3 01/16] drm/mipi-dbi: Only modify planes on enabled CRTCs Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 02/16] drm/mipi-dbi: Support custom pipelines with drm_mipi_dbi_dev_init() Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 03/16] drm/mipi-dbi: Provide callbacks for atomic interfaces Thomas Zimmermann
2026-03-21 18:15 ` Claude Code Review Bot [this message]
2026-03-19 15:59 ` [PATCH v3 04/16] drm/hx8357d: Use regular atomic helpers; drop simple-display helpers Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 05/16] drm/ili9163: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 06/16] drm/ili9225: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 07/16] drm/ili9341: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 08/16] drm/ili9486: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 09/16] drm/mi0283qt: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 10/16] drm/panel-mipi-dbi: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 11/16] drm/st7586: " Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 12/16] drm/st7735r: Rename struct st7735r_priv to struct st7735r_device Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 13/16] drm/st7735r: Rename priv variable to st7735r Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 14/16] drm/st7735r: Use regular atomic helpers; drop simple-display helpers Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 15/16] drm/mipi-dbi: Remove simple-display helpers from mipi-dbi Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-19 15:59 ` [PATCH v3 16/16] drm/simple-kms: Deprecate simple-kms helpers Thomas Zimmermann
2026-03-21 18:15 ` Claude review: " Claude Code Review Bot
2026-03-21 18:15 ` Claude review: drm/mipi-dbi: Replace simple-display helpers with regular atomic helpers Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-03-11 10:10 [PATCH v2 00/16] " Thomas Zimmermann
2026-03-11 10:10 ` [PATCH v2 03/16] drm/mipi-dbi: Provide callbacks for atomic interfaces Thomas Zimmermann
2026-03-11 21:03 ` 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-20260319160110.109610-4-tzimmermann@suse.de \
--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