# Re: \[PATCH v3\] rust: serdev: Mitigate race conditions

- From: Miguel Ojeda \<hidden\>
- Date: 2026-09-05 18:43:42 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2026/09/17519187
- Thread: https://ratatoskr.run/linux-serial/2026/09/17519167/t.md

```text
On Sat, Sep 5, 2026 at 8:33 PM Markus Probst [ref] wrote:
>
> +        /* receive_buf: if T::HAS_RECEIVE {
>              Some(Self::receive_buf_callback)
>          } else {
>              None
> +        }, */

> +        // Bound,

> +    /*fn receive<'bound>(
>          sdev: &'bound serdev::Device<Bound>,
>          _this: Pin<&Self>,
>          data: &[u8],
>      ) -> usize {
>          sdev.write(data).unwrap_or_default() as usize
> -    }
> +    }*/

Please don't comment code out -- it is fine to just remove it even if
it is a temporary measure. The code will still be there in Git.

Thanks!

Cheers,
Miguel
```
