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: tyr: remove impl Send/Sync for TyrData
Date: Tue, 24 Feb 2026 10:11:36 +1000	[thread overview]
Message-ID: <review-patch2-20260223-clk-send-sync-v5-2-181bf2f35652@google.com> (raw)
In-Reply-To: <20260223-clk-send-sync-v5-2-181bf2f35652@google.com>

Patch Review

> -// Both `Clk` and `Regulator` do not implement `Send` or `Sync`, but they
> -// should. There are patches on the mailing list to address this, but they have
> -// not landed yet.
> -//
> -// For now, add this workaround so that this patch compiles with the promise
> -// that it will be removed in a future patch.
> -//
> -// SAFETY: This will be removed in a future patch.
> -unsafe impl Send for TyrData {}
> -// SAFETY: This will be removed in a future patch.
> -unsafe impl Sync for TyrData {}

Removal is correct. After patch 1, `TyrData`'s fields all auto-derive `Send`/`Sync`: `ARef<platform::Device>` is `Send`+`Sync`, `Mutex<Clocks>` is `Send`+`Sync` (where `Clocks` contains `Clk` and `OptionalClk`, now both `Send`+`Sync`), `Mutex<Regulators>` is `Send`+`Sync` (where `Regulator<T>` already has `Send`+`Sync` per commit 9a200cbdb543), and `GpuInfo` wraps a plain data struct. The commit message correctly explains that the `Regulator` case was already resolved in mainline.

No issues found.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-02-24  0:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-23 10:08 [PATCH v5 0/3] Implement Send and Sync for clk Alice Ryhl
2026-02-23 10:08 ` [PATCH v5 1/3] rust: clk: implement Send and Sync Alice Ryhl
2026-02-24  0:11   ` Claude review: " Claude Code Review Bot
2026-02-23 10:08 ` [PATCH v5 2/3] tyr: remove impl Send/Sync for TyrData Alice Ryhl
2026-02-24  0:11   ` Claude Code Review Bot [this message]
2026-02-23 10:08 ` [PATCH v5 3/3] pwm: th1520: remove impl Send/Sync for Th1520PwmDriverData Alice Ryhl
2026-02-24  0:11   ` Claude review: " Claude Code Review Bot
2026-02-24  0:11 ` Claude review: Implement Send and Sync for clk 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-patch2-20260223-clk-send-sync-v5-2-181bf2f35652@google.com \
    --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