Re: [PATCH 6/7] rust: usb: remove the disconnect() callback
From: Greg KH
Date: Thu Dec 03 2026 - 22:23:56 EST
On Thu, Nov 12, 2026 at 01:53:00AM +0100, Danilo Krummrich wrote:
> The driver model uses native Rust lifetimes to let driver data retain
> device resources and an Interface<Bound> reference for the duration of
> the binding. Both remain accessible from the destructor, so a separate
> disconnect() callback is no longer needed.
>
> Remove usb::Driver::disconnect() and document that device teardown
> belongs in Drop or PinnedDrop.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>