Re: [PATCH v13 3/7] rust: pci: impl AsMut for pci::Device

Greg KH
2025-03-07T14:18:18Z

On Fri, Mar 07, 2025 at 01:06:20PM +0200, Abdiel Janulgue wrote:
> From: Danilo Krummrich <dakr@kernel.org>
>
> Some device methods require mutable references, since they change the
> underlying struct device without lock protection.
>
> Hence, make it possible to retrieve a mutable reference to a Device from
> a mutable pci::Device.
>
> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
> ---

Note, you can't forward on a patch from someone else without also
signing off on it. Please read the DCO for what this means and why.

thanks,

greg k-h