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

From: Abdiel Janulgue
Date: Fri Mar 07 2025 - 12:53:52 EST




On 07/03/2025 16:18, Greg KH wrote:
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 for the reminder! Will do so in next revision.

Regards,
Abdiel