From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: samples: rust: add Rust serial device bus sample device driver Date: Tue, 05 May 2026 11:18:29 +1000 Message-ID: In-Reply-To: <20260429-rust_serdev-v7-4-0d89c791b5c8@posteo.de> References: <20260429-rust_serdev-v7-0-0d89c791b5c8@posteo.de> <20260429-rust_serdev-v7-4-0d89c791b5c8@posteo.de> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review Clean, well-structured sample driver. It demonstrates: - OF and ACPI device table registration - Probe with optional baudrate property from firmware - Receive callback that echoes data back - Drop for cleanup logging ```rust + fn receive(sdev: &serdev::Device, _this: Pin<&Self>, data: &[u8= ]) -> usize { + let _ =3D sdev.write_all(data, serdev::Timeout::Max); + data.len() + } ``` The `let _ =3D` silently discards write errors during echo, which is fine f= or a sample. The function always returns `data.len()` claiming all bytes we= re consumed regardless of write success =E2=80=94 acceptable for a demo. **Minor:** The Kconfig entry doesn't have a `depends on SAMPLES` guard, but= that's consistent with other sample drivers in the same file. No significant issues with this patch. --- Generated by Claude Code Patch Reviewer