Re: [PATCH v13 3/7] rust: pci: impl AsMut<Device> for pci::Device
From: Greg KH
Date: Fri Mar 07 2025 - 09:18:27 EST
On Fri, Mar 07, 2025 at 01:06:20PM +0200, Abdiel Janulgue wrote:
> From: Danilo Krummrich <dakr@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> ---
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