From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: rust: add basic serial device bus abstractions Date: Thu, 04 Jun 2026 11:33:17 +1000 Message-ID: In-Reply-To: <20260603-rust_serdev-v12-0-3400ffb88b12@posteo.de> References: <20260603-rust_serdev-v12-0-3400ffb88b12@posteo.de> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: rust: add basic serial device bus abstractions Author: Markus Probst via B4 Relay Patches: 4 Reviewed: 2026-06-04T11:33:17.504262 --- This is a well-structured v12 series adding Rust abstractions for the serial device bus (serdev). The design closely follows established Rust-for-Linux bus driver patterns (platform, USB, auxiliary). The probe/remove lifecycle is carefully handled with a `ScopeGuard` for cleanup on probe failure, and a `Mutex` (`active`) to protect against `receive_buf_callback` racing with either a failed probe or a drop. The series depends on Danilo Krummrich's driver-lifetime patches. The code is generally clean and the safety comments are well-written. I found a few documentation typos, one questionable silent-overflow-to-infinite-timeout semantic, and a theoretical truncation issue in `write_all()`. None of these are showstoppers. **Verdict:** Looks good with minor nits. The core abstraction design is sound. --- --- Generated by Claude Code Patch Reviewer